Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-29 00:33:37 +0400
committerJunio C Hamano <junkio@cox.net>2007-03-29 00:44:04 +0400
commit542e165cdc4fbebbfe7c8954ca1aa1d4162e38cb (patch)
treef085406239e17030fdfea420a208a3d6e0833096 /t
parent9c880b3ea56a7ff2f66dcf12eb2351f0f51a54ef (diff)
Fix "--pretty=format:" for parent related items.
There are two breakages in the %P/%p interpolation. It appended an excess SP at the end of the list, and it gave uninitialized contents of a buffer on the stack for root commits. This fixes it, while updating the t6006 test which expected the wrong output. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-x[-rw-r--r--]t/t6006-rev-list-format.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh
index cf096c3579..ce9c7dc6eb 100644..100755
--- a/t/t6006-rev-list-format.sh
+++ b/t/t6006-rev-list-format.sh
@@ -39,11 +39,11 @@ EOF
test_format parents %P%n%p <<'EOF'
commit 131a310eb913d107dd3c09a65d1651175898735d
-86c75cfd708a0e5868dc876ed5b8bb66c80b4873
-86c75cf
+86c75cfd708a0e5868dc876ed5b8bb66c80b4873
+86c75cf
commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873
-86c75cf
-86c75cf
+
+
EOF
# we don't test relative here