From eeace5afb4fe908d72afc9fdb0c9fb1352a1903d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 1 Feb 2008 22:13:01 -0500 Subject: [PATCH] * Add a newline to the .id files committed to git. --- debian/changelog | 1 + pristine-tar | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1a3d20b..6262b2b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ pristine-tar (0.7) UNRELEASED; urgency=low * Improve/fix handling when there is no local pristine-tar branch. + * Add a newline to the .id files committed to git. -- Joey Hess Fri, 01 Feb 2008 22:11:43 -0500 diff --git a/pristine-tar b/pristine-tar index 8f9340d..16387fb 100755 --- a/pristine-tar +++ b/pristine-tar @@ -510,7 +510,7 @@ sub checkoutdelta { if ($?) { error "git show $branch:$idfile failed"; } - chomp $id; # just in case.. + chomp $id; if (! length $id) { error "git show $branch:$idfile returned no id"; } @@ -539,7 +539,7 @@ sub commitdelta { print OUT $delta; close OUT; open(OUT, ">$tempdir/$idfile") || die "$tempdir/$idfile: $!"; - print OUT $id; + print OUT "$id\n"; close OUT; # Commit the delta to a branch in git without affecting the -- 2.7.4