aboutsummaryrefslogtreecommitdiffstats
path: root/git-obranch
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-07-20 11:42:43 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-10-07 11:02:08 +0200
commitf236bd6a818e7f55efc3431e2030f7e141bcea3a (patch)
treee96640647b9340540f12632f445bda07c3d16ee2 /git-obranch
parentc92568e895ed2946c96c84b07ada1583e9cb4fc0 (diff)
downloadgosc-f236bd6a818e7f55efc3431e2030f7e141bcea3a.tar.gz
Just use factory/ branch, if it already exists.
Diffstat (limited to 'git-obranch')
-rwxr-xr-xgit-obranch2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-obranch b/git-obranch
index fb5e90d..f49ce79 100755
--- a/git-obranch
+++ b/git-obranch
@@ -66,7 +66,7 @@ echo '_scmsync.obsinfo' >> .git/info/exclude
# Set config
git config "lfs.$(git remote get-url myproj)/info/lfs.locksverify" true
# Switch to factory branch, obs_state is just a record of the old state
-git checkout --force -b factory myproj/factory
+git checkout --force -B factory myproj/factory
# # SCM Sync settings
OSC_META=$(mktemp /tmp/osc_meta_data.XXXXXX.xml)