Commit 3e1ca669 authored by Leigh B Stoller's avatar Leigh B Stoller

Hmm, the -e option to git cat-file is broken, it still sends output

to stdout. Redirect output to /dev/null.
parent 4ec97a91
......@@ -564,10 +564,12 @@ sub GetRepoSource($;$)
chdir("$repodir") or
fatal("Could not chdir to $repodir: $!");
if (system("$GIT cat-file -e $refspec:profile.py") == 0) {
if (system("$GIT cat-file -e ".
"$refspec:profile.py >/dev/null 2>&1") == 0) {
$source = "profile.py";
}
elsif (system("$GIT cat-file -e $refspec:profile.rspec") == 0) {
elsif (system("$GIT cat-file -e ".
" $refspec:profile.rspec >/dev/null 2>&1") == 0) {
$source = "profile.rspec";
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment