From: Sven Eden Date: Thu, 15 Mar 2018 05:12:03 +0000 (+0100) Subject: check_tree.pl: chomp git rev-parse results. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39a92368a22357f91d90af998e652372c9e7c339;p=elogind.git check_tree.pl: chomp git rev-parse results. --- diff --git a/pwx/check_tree.pl b/pwx/check_tree.pl index 2c5e9c6bd..299ea6d2f 100755 --- a/pwx/check_tree.pl +++ b/pwx/check_tree.pl @@ -1120,6 +1120,7 @@ sub checkout_upstream { print "$previous_commit\n"; return 0; } + chomp $previous_commit; # Get the shortened commit hash of $commit $new_commit = qx(cd $upstream_path ; git rev-parse --short "$commit" 2>&1); @@ -1129,6 +1130,7 @@ sub checkout_upstream { print "$new_commit\n"; return 0; } + chomp $new_commit; # Now check it out, unless we are already there: if ($previous_commit ne $new_commit) {