Skip to content

Commit be0dca3

Browse files
committed
Merge branch 'maint'
* maint: t3701: fix here document git-fast-import.txt: --relative-marks takes no parameter shell: add missing initialization of argv0_path
2 parents 505a138 + 8fe6177 commit be0dca3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Documentation/git-fast-import.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ OPTIONS
8383
skips the file if it does not exist.
8484

8585
--relative-marks::
86-
After specifying --relative-marks= the paths specified
86+
After specifying --relative-marks the paths specified
8787
with --import-marks= and --export-marks= are relative
8888
to an internal directory in the current repository.
8989
In git-fast-import this means that the paths are relative
@@ -93,7 +93,7 @@ OPTIONS
9393
--no-relative-marks::
9494
Negates a previous --relative-marks. Allows for combining
9595
relative and non-relative marks by interweaving
96-
--(no-)-relative-marks= with the --(import|export)-marks=
96+
--(no-)-relative-marks with the --(import|export)-marks=
9797
options.
9898

9999
--cat-blob-fd=<fd>::

shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ int main(int argc, char **argv)
137137
int devnull_fd;
138138
int count;
139139

140+
git_extract_argv0_path(argv[0]);
141+
140142
/*
141143
* Always open file descriptors 0/1/2 to avoid clobbering files
142144
* in die(). It also avoids not messing up when the pipes are

t/t3701-add-interactive.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ EOF
8282
'
8383

8484
test_expect_success PERL 'setup fake editor' '
85-
cat >fake_editor.sh <<EOF
86-
EOF
85+
>fake_editor.sh &&
8786
chmod a+x fake_editor.sh &&
88-
test_set_editor "$(pwd)/fake_editor.sh" &&
87+
test_set_editor "$(pwd)/fake_editor.sh"
8988
'
9089

9190
test_expect_success PERL 'dummy edit works' '

0 commit comments

Comments
 (0)