mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
mkosi: Don't sync if the packaging specs repo is dirty
This commit is contained in:
@@ -12,6 +12,10 @@ if [[ -d "pkg/$PKG_SUBDIR/.git" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ -n "$(git -C "pkg/$PKG_SUBDIR" status --porcelain)" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! git -C "pkg/$PKG_SUBDIR" show-ref --quiet "origin/$GIT_BRANCH"; then
|
||||
git -C "pkg/$PKG_SUBDIR" remote set-url origin "$GIT_URL"
|
||||
git -C "pkg/$PKG_SUBDIR" fetch origin "$GIT_BRANCH"
|
||||
|
||||
Reference in New Issue
Block a user