mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 20:40:15 +02:00
Merge pull request #45 from samply/develop
Don't warn about modified git dir twice
This commit is contained in:
@ -38,7 +38,6 @@ for DIR in /etc/bridgehead $(pwd); do
|
|||||||
log "INFO" "Checking for updates to git repo $DIR ..."
|
log "INFO" "Checking for updates to git repo $DIR ..."
|
||||||
OUT="$(git -C $DIR status --porcelain)"
|
OUT="$(git -C $DIR status --porcelain)"
|
||||||
if [ -n "$OUT" ]; then
|
if [ -n "$OUT" ]; then
|
||||||
log WARN "The working directory $DIR is modified. Changed files: $OUT"
|
|
||||||
report_error log "The working directory $DIR is modified. Changed files: $OUT"
|
report_error log "The working directory $DIR is modified. Changed files: $OUT"
|
||||||
fi
|
fi
|
||||||
if [ "$(git -C $DIR config --get credential.helper)" != "$CREDHELPER" ]; then
|
if [ "$(git -C $DIR config --get credential.helper)" != "$CREDHELPER" ]; then
|
||||||
|
Reference in New Issue
Block a user