mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
mkosi: Fix sync script git command
Let's make sure we actually operate on the packaging git repo.
This commit is contained in:
@@ -15,7 +15,7 @@ if [[ -d "$PKG_SUBDIR/.git" ]]; then
|
||||
fi
|
||||
|
||||
# If work is being done on the packaging rules in a separate branch, don't touch the checkout.
|
||||
if ! git merge-base --is-ancestor HEAD "origin/$GIT_BRANCH"; then
|
||||
if ! git -C "$PKG_SUBDIR" merge-base --is-ancestor HEAD "origin/$GIT_BRANCH"; then
|
||||
EXIT_STATUS=$?
|
||||
if [[ $EXIT_STATUS -eq 1 ]]; then
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user