File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,13 +197,13 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
197197 Show untracked files (Default: 'all').
198198+
199199The 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+
208208See linkgit:git-config[1] for configuration variable
209209used to change the default for when the option is not
Original file line number Diff line number Diff 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 = []
Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ tagger T A Gger <tagger@example.com> 1234567890 -0000
6666This is an invalid tag.
6767EOF
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 <tagger@example.com> 1234567890 -0000
8484This is an invalid tag.
8585EOF
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
You can’t perform that action at this time.
0 commit comments