File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -442,19 +442,20 @@ rm -rf "$tempdir"
442
442
443
443
trap - 0
444
444
445
+ unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE
446
+ test -z " $ORIG_GIT_DIR " || {
447
+ GIT_DIR=" $ORIG_GIT_DIR " && export GIT_DIR
448
+ }
449
+ test -z " $ORIG_GIT_WORK_TREE " || {
450
+ GIT_WORK_TREE=" $ORIG_GIT_WORK_TREE " &&
451
+ export GIT_WORK_TREE
452
+ }
453
+ test -z " $ORIG_GIT_INDEX_FILE " || {
454
+ GIT_INDEX_FILE=" $ORIG_GIT_INDEX_FILE " &&
455
+ export GIT_INDEX_FILE
456
+ }
457
+
445
458
if [ " $( is_bare_repository) " = false ]; then
446
- unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE
447
- test -z " $ORIG_GIT_DIR " || {
448
- GIT_DIR=" $ORIG_GIT_DIR " && export GIT_DIR
449
- }
450
- test -z " $ORIG_GIT_WORK_TREE " || {
451
- GIT_WORK_TREE=" $ORIG_GIT_WORK_TREE " &&
452
- export GIT_WORK_TREE
453
- }
454
- test -z " $ORIG_GIT_INDEX_FILE " || {
455
- GIT_INDEX_FILE=" $ORIG_GIT_INDEX_FILE " &&
456
- export GIT_INDEX_FILE
457
- }
458
459
git read-tree -u -m HEAD
459
460
fi
460
461
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ test_expect_success 'result is really identical' '
39
39
'
40
40
41
41
test_expect_success ' rewrite bare repository identically' '
42
- (git config core.bare true && cd .git && git filter-branch branch)
42
+ (git config core.bare true && cd .git &&
43
+ git filter-branch branch > filter-output 2>&1 &&
44
+ ! fgrep fatal filter-output)
43
45
'
44
46
git config core.bare false
45
47
test_expect_success ' result is really identical' '
You can’t perform that action at this time.
0 commit comments