File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -197,13 +197,13 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
197
197
Show untracked files (Default: 'all').
198
198
+
199
199
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:
201
203
+
202
- --
203
204
- 'no' - Show no untracked files
204
205
- 'normal' - Shows untracked files and directories
205
206
- 'all' - Also shows individual files in untracked directories.
206
- --
207
207
+
208
208
See linkgit:git-config[1] for configuration variable
209
209
used 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):
967
967
elif file ["type" ] == "symlink" :
968
968
mode = "120000"
969
969
# 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 ]]
973
972
974
973
if self .isWindows and file ["type" ].endswith ("text" ):
975
974
mangled = []
Original file line number Diff line number Diff line change 66
66
This is an invalid tag.
67
67
EOF
68
68
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) &&
71
71
echo $tag > .git/refs/tags/invalid &&
72
- git fsck --tags 2 >out &&
72
+ test_must_fail git fsck --tags >out &&
73
73
cat out &&
74
- grep "could not load tagged object " out &&
74
+ grep "broken link " out &&
75
75
rm .git/refs/tags/invalid
76
76
'
77
77
84
84
This is an invalid tag.
85
85
EOF
86
86
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) &&
89
89
echo $tag > .git/refs/tags/wrong &&
90
- git fsck --tags 2>out &&
90
+ test_must_fail git fsck --tags 2>out &&
91
91
cat out &&
92
- grep "some sane error message " out &&
92
+ grep "error in tag.*broken links " out &&
93
93
rm .git/refs/tags/wrong
94
94
'
95
95
You can’t perform that action at this time.
0 commit comments