Commit 2ac3b25
committed
t2031: verify that
This currently fails, with:
++ p=/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef
++ p=y/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef
++ test_config_global core.longpaths true
++ test_when_finished 'test_unconfig --global '\''core.longpaths'\'''
++ test 0 = 0
++ test_cleanup='{ test_unconfig --global '\''core.longpaths'\''
} && (exit "$eval_ret"); eval_ret=$?; :'
++ git config --global core.longpaths true
++ git init y/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef
fatal: cannot chdir to y/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef: No such file or directory
error: last command exited with $?=128
not ok 7 - init with long path
Signed-off-by: Johannes Schindelin <[email protected]>git init can create a long path1 parent 7a3a4c7 commit 2ac3b25
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
0 commit comments