mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
mkosi: Don't sync if the packaging specs repo is dirty
This commit is contained in:
parent
c73d14c43e
commit
9c7762c943
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user