Add missing --git-dir=$srcdir/.git for ls-remote

Change-Id: I848b80cd8126d93cbf3ce02a333345f4ea6b4e92
Reviewed-on: https://code.wireshark.org/review/2231
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2014-06-15 19:37:04 +02:00
parent 14903d65c3
commit fae6b0b573
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ sub read_repo_info {
$commit_id = $parts[-1];
}
chomp($line = qx{git ls-remote --get-url origin});
chomp($line = qx{git --git-dir=$srcdir/.git ls-remote --get-url origin});
if (defined($line)) {
$repo_url = $line;
}