diff options
author | Patrick Palka <patrick@parcs.ath.cx> | 2013-01-13 12:02:10 -0500 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-01-27 18:15:28 +0000 |
commit | 146b0eafa17f0ac28f7ef3f273919c4c6a22f45b (patch) | |
tree | 27e226ba2e1a330547fdd48dd990477208902dc8 /sync-all | |
parent | 1095d51520e3e917e90f073782c04a785ea9f7be (diff) | |
download | haskell-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-x | sync-all | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |