From 39a92368a22357f91d90af998e652372c9e7c339 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Thu, 15 Mar 2018 06:12:03 +0100 Subject: [PATCH] check_tree.pl: chomp git rev-parse results. --- pwx/check_tree.pl | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.30.2