aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-22 11:24:01 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-22 19:25:48 +0000
commitb044e48c7005ecb4233e7d6991876ebe3b673edc (patch)
treec337abf4e1e1206e580db3e20e16415810a62f66 /make-version.pl
parentd69cec7cffc9e281b9a5dd389120f0791e1d805f (diff)
Quote the source directory in Git commands.
It may contain spaces (it does on my Windows 7 VM), so it must be quoted. (There are probably other places where it needs to be quoted in this script.) Change-Id: If363691b0f94bbe75755072fd5245266566c3360 Reviewed-on: https://code.wireshark.org/review/12043 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/make-version.pl b/make-version.pl
index 0eee0beaba..62312e6c78 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -163,13 +163,13 @@ sub read_repo_info {
use warnings "all";
no warnings "all";
- chomp($line = qx{git --git-dir=$srcdir/.git log -1 --pretty=format:%at});
+ chomp($line = qx{git --git-dir="$srcdir"/.git log -1 --pretty=format:%at});
if ($? == 0 && length($line) > 1) {
$last_change = $line;
}
# Commits since last annotated tag.
- chomp($line = qx{git --git-dir=$srcdir/.git describe --long --always --match "v*"});
+ chomp($line = qx{git --git-dir="$srcdir"/.git describe --long --always --match "v*"});
if ($? == 0 && length($line) > 1) {
my @parts = split(/-/, $line);
$git_description = $line;
@@ -179,7 +179,7 @@ sub read_repo_info {
# This will break in some cases. Hopefully not during
# official package builds.
- chomp($line = qx{git --git-dir=$srcdir/.git rev-parse --abbrev-ref --symbolic-full-name \@\{upstream\}});
+ chomp($line = qx{git --git-dir="$srcdir"/.git rev-parse --abbrev-ref --symbolic-full-name \@\{upstream\}});
if ($? == 0 && length($line) > 1) {
$repo_branch = basename($line);
}