From 588c365cb576197345db52169b3d8660d053464c Mon Sep 17 00:00:00 2001 From: Lukasz Balamut Date: Sun, 16 Aug 2015 21:33:37 +0200 Subject: [PATCH 1/2] eachrepo supports symbolic links to repositories -L Cause the file information and file type (see stat(2)) returned for each symbolic link to be those of the file referenced by the link, not the link itself. If the referenced file does not exist, the file information and type will be for the link itself. --- src/main/bash/eachrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/bash/eachrepo b/src/main/bash/eachrepo index c9b69e7..ecf31bf 100755 --- a/src/main/bash/eachrepo +++ b/src/main/bash/eachrepo @@ -66,7 +66,7 @@ run_in_dir() { export -f run_in_dir find_git_worktrees() { - find . -depth 1 -type d -not \( -name '.*' -prune \) -execdir test -d {}/.git ';' -prune "$@" + find -L . -depth 1 -type d -not \( -name '.*' -prune \) -execdir test -d {}/.git ';' -prune "$@" } if [ "${parallel}" = "true" ] && which -s parallel; then From 54ef47de8b55d9ee1edf48747a49d53c548f25c5 Mon Sep 17 00:00:00 2001 From: Lukasz Balamut Date: Sun, 16 Aug 2015 21:43:17 +0200 Subject: [PATCH 2/2] Revert "Do not fail when shadow is not cleaned when clean_shadow = false" This reverts commit b57a0bd1ef4935523986a73798e06592053185ac. --- src/main/bash/push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/bash/push b/src/main/bash/push index c1127a5..c256298 100755 --- a/src/main/bash/push +++ b/src/main/bash/push @@ -181,7 +181,7 @@ for commit in "${to_push[@]}"; do status "Building using:$(printf ' %q' "${build_command[@]}")" "${build_command[@]}" - if [ "${clean_shadow}" = true ] && [ -n "$(set +u && git ls-files --modified --others --exclude-standard "${link_exclusions[@]}")" ]; then + if [ -n "$(set +u && git ls-files --modified --others --exclude-standard "${link_exclusions[@]}")" ]; then fail "Unstaged changes after a successful build run! $(git status)" fi