diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-07-20 11:42:43 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-10-07 11:02:08 +0200 |
commit | f236bd6a818e7f55efc3431e2030f7e141bcea3a (patch) | |
tree | e96640647b9340540f12632f445bda07c3d16ee2 | |
parent | c92568e895ed2946c96c84b07ada1583e9cb4fc0 (diff) | |
download | gosc-f236bd6a818e7f55efc3431e2030f7e141bcea3a.tar.gz |
Just use factory/ branch, if it already exists.
-rwxr-xr-x | git-obranch | 2 |
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) |