From e62928816c6fb218588425a1d651784d7b4b408b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 18 Jul 2023 15:44:35 +0200 Subject: Correct URL for element. --- git-obranch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-obranch b/git-obranch index 2a2d367..ebd94bf 100755 --- a/git-obranch +++ b/git-obranch @@ -65,6 +65,8 @@ echo '.osc/' >> .git/info/exclude 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 # # SCM Sync settings OSC_META=$(mktemp /tmp/osc_meta_data.XXXXXX.xml) @@ -76,6 +78,6 @@ osc meta pkg "$DEVPRJ" "$PKG" >"$OSC_META" 2>/dev/null # (https://stackoverflow.com/a/1732454/164233) we can use # xmlstarlet instead. if ! grep '' "$OSC_META" >/dev/null 2>&1 ; then - sed -e "/<\/description>/a\ \ $(git remote get-url myproj)<\/scmsync>" \ + sed -e "/<\/package>/i\ \ https://src.opensuse.org/pool/$PKG<\/scmsync>" \ "$OSC_META" | osc meta pkg "$DEVPRJ" "$PKG" -F - fi -- cgit