@matheusbsbs / matheus-bagliano / commits / cb9594e28c
Fork 0

cvsimport: fix reading from rev-parse

The updated code reads the tip of the current branch before and after the import runs, but forgot to chomp what we read from the command. The read-tree command did not them with the trailing LF. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Mar 18, 2006 at 02:05 UTC cb9594e28c940d2bbf4d7fb69c337d27155da37a
1 file changed +1
git-cvsimport.perl
+1
@@ -881,6 +881,7 @@ if($orig_branch) {
881 }
882 my $tip_at_end = `git-rev-parse --verify HEAD`;
883 if ($tip_at_start ne $tip_at_end) {
884 + for ($tip_at_start, $tip_at_end) { chomp; }
885 print "Fetched into the current branch.\n" if $opt_v;
886 system(qw(git-read-tree -u -m),
887 $tip_at_start, $tip_at_end);