aboutsummaryrefslogtreecommitdiffstats
path: root/build-one.bash
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-10-30 12:57:32 -0700
committerNathan Chancellor <natechancellor@gmail.com>2020-10-30 13:02:24 -0700
commit0917b8287ca4f42ee9557045c3f65d989376898f (patch)
tree2a1a9a660691dfc0db13b06a1eccae98eb88ea18 /build-one.bash
parentOctober update (diff)
downloadandroid-wireguard-module-builder-0917b8287ca4f42ee9557045c3f65d989376898f.tar.xz
android-wireguard-module-builder-0917b8287ca4f42ee9557045c3f65d989376898f.zip
build-one.bash: override user's default branch name for temporary manifest repo
If a user has specified init.defaultBranch via git config, repo will fail to properly init the temporary manifest repo. $ ./build-one.bash ... ... + repo init -u ./manifest Downloading Repo source from https://gerrit.googlesource.com/git-repo repo: Updating release signing keys to keyset ver 2.3 Downloading manifest from ./manifest fatal: couldn't find remote ref refs/heads/master manifests: fatal: couldn't find remote ref refs/heads/master fatal: couldn't find remote ref refs/heads/master manifests: fatal: couldn't find remote ref refs/heads/master fatal: cannot obtain manifest ./manifest To fix this, force the branch to be named master, which aligns with current repo expectations. Link: https://gerrit.googlesource.com/git-repo/+/50a81de2bc9f2074d56c368f651cf9f50c8d8a87 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'build-one.bash')
-rwxr-xr-xbuild-one.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-one.bash b/build-one.bash
index 3844271..f4c8cc6 100755
--- a/build-one.bash
+++ b/build-one.bash
@@ -29,7 +29,7 @@ cd "$D"
# Step 3) Initialize repo with manifests and fetch repositories.
mkdir -p manifest
cd manifest
-git init
+git init --initial-branch=master
git config user.email "$(id -un)@$(hostname)"
git config user.name "$(id -un)"
cp "$KERNEL_DIR/manifest.xml" default.xml