summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2013-01-13 12:02:10 -0500
committerIan Lynagh <ian@well-typed.com>2013-01-27 18:15:28 +0000
commit146b0eafa17f0ac28f7ef3f273919c4c6a22f45b (patch)
tree27e226ba2e1a330547fdd48dd990477208902dc8 /sync-all
parent1095d51520e3e917e90f073782c04a785ea9f7be (diff)
downloadhaskell-146b0eafa17f0ac28f7ef3f273919c4c6a22f45b.tar.gz
use -e rather than -d when checking for the existence of a subrepo
The .git file in a submodule's root directory is not necessarily a directory, as is the case for the 'time' submodule. This fixes #7577, where some './sync-all' operations don't detect that the 'time' submodule is present in the repository.
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index 0b29903ae2..889f124b5a 100755
--- a/sync-all
+++ b/sync-all
@@ -335,7 +335,7 @@ sub scmall {
}
my $darcs_repo_present = 1 if -d "$localpath/_darcs";
- my $git_repo_present = 1 if -d "$localpath/.git" || ($bare_flag && -d "$localpath");
+ my $git_repo_present = 1 if -e "$localpath/.git" || ($bare_flag && -d "$localpath");
if ($darcs_repo_present) {
if ($git_repo_present) {
die "Found both _darcs and .git in $localpath";