-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathfork
More file actions
executable file
·25 lines (19 loc) · 649 Bytes
/
fork
File metadata and controls
executable file
·25 lines (19 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -o errexit -o nounset -o pipefail
source "$(dirname ${BASH_SOURCE[0]})/common.sh"
if [[ $# -ne 1 ]]; then
user_error "expected 1 argument"
fi
repo=${1%/}
local_repo=${repo//\//_}
upstream="https://android.googlesource.com/$repo"
git clone $upstream -b $aosp_tag
mv $(basename $repo) $local_repo
cd $local_repo
git checkout -b $branch
git remote add upstream $upstream
git fetch upstream --tags
git remote rm origin
gh repo create --public --push --source . GrapheneOS/$local_repo -h https://grapheneos.org/ --disable-issues --disable-wiki
gh repo edit --enable-projects=false --enable-merge-commit=false
gh repo view --web