Skip to content

Commit 1958e5b

Browse files
committed
Merge branch 'maint'
* maint: git-p4: fix bug in symlink handling t1450: fix testcases that were wrongly expecting failure Documentation: Fix indentation problem in git-commit(1)
2 parents 50c19c7 + b39c361 commit 1958e5b

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Documentation/git-commit.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
197197
Show untracked files (Default: 'all').
198198
+
199199
The mode parameter is optional, and is used to specify
200-
the handling of untracked files. The possible options are:
200+
the handling of untracked files.
201+
+
202+
The possible options are:
201203
+
202-
--
203204
- 'no' - Show no untracked files
204205
- 'normal' - Shows untracked files and directories
205206
- 'all' - Also shows individual files in untracked directories.
206-
--
207207
+
208208
See linkgit:git-config[1] for configuration variable
209209
used to change the default for when the option is not

contrib/fast-import/git-p4

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,8 @@ class P4Sync(Command):
967967
elif file["type"] == "symlink":
968968
mode = "120000"
969969
# p4 print on a symlink contains "target\n", so strip it off
970-
last = contents.pop()
971-
last = last[:-1]
972-
contents.append(last)
970+
data = ''.join(contents)
971+
contents = [data[:-1]]
973972

974973
if self.isWindows and file["type"].endswith("text"):
975974
mangled = []

t/t1450-fsck.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ tagger T A Gger <[email protected]> 1234567890 -0000
6666
This is an invalid tag.
6767
EOF
6868

69-
test_expect_failure 'tag pointing to nonexistent' '
70-
tag=$(git hash-object -w --stdin < invalid-tag) &&
69+
test_expect_success 'tag pointing to nonexistent' '
70+
tag=$(git hash-object -t tag -w --stdin < invalid-tag) &&
7171
echo $tag > .git/refs/tags/invalid &&
72-
git fsck --tags 2>out &&
72+
test_must_fail git fsck --tags >out &&
7373
cat out &&
74-
grep "could not load tagged object" out &&
74+
grep "broken link" out &&
7575
rm .git/refs/tags/invalid
7676
'
7777

@@ -84,12 +84,12 @@ tagger T A Gger <[email protected]> 1234567890 -0000
8484
This is an invalid tag.
8585
EOF
8686

87-
test_expect_failure 'tag pointing to something else than its type' '
88-
tag=$(git hash-object -w --stdin < wrong-tag) &&
87+
test_expect_success 'tag pointing to something else than its type' '
88+
tag=$(git hash-object -t tag -w --stdin < wrong-tag) &&
8989
echo $tag > .git/refs/tags/wrong &&
90-
git fsck --tags 2>out &&
90+
test_must_fail git fsck --tags 2>out &&
9191
cat out &&
92-
grep "some sane error message" out &&
92+
grep "error in tag.*broken links" out &&
9393
rm .git/refs/tags/wrong
9494
'
9595

0 commit comments

Comments
 (0)