packet-dcerpc: nca_s_fault_sec_pkg_error
[metze/wireshark/wip.git] / make-version.pl
index ee49de53f6a0a8e37f43046c3f26c1093fd7736b..f12f8bc590a0bd35c35a99eb7e20808b067e4432 100755 (executable)
@@ -137,7 +137,7 @@ sub read_repo_info {
                $package_format = $version_pref{"pkg_format"};
        }
 
-       if (-d "$srcdir/.git" && ! -d "$srcdir/.git/svn") {
+       if (-e "$srcdir/.git" && ! -d "$srcdir/.git/svn") {
                $info_source = "Command line (git)";
                $version_pref{"git_client"} = 1;
        } elsif (-d "$srcdir/.svn" or -d "$srcdir/../.svn") {
@@ -255,7 +255,7 @@ sub read_repo_info {
                unlink($tortoise_file);
        }
 
-       if ($num_commits == 0 and -d "$srcdir/.git") {
+       if ($num_commits == 0 and -e "$srcdir/.git") {
 
                # Try git...
                eval {