Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  t3701: fix here document
  git-fast-import.txt: --relative-marks takes no parameter
  shell: add missing initialization of argv0_path
  • Loading branch information
Junio C Hamano committed May 5, 2011
2 parents 505a138 + 8fe6177 commit be0dca3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-fast-import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ OPTIONS
skips the file if it does not exist.

--relative-marks::
After specifying --relative-marks= the paths specified
After specifying --relative-marks the paths specified
with --import-marks= and --export-marks= are relative
to an internal directory in the current repository.
In git-fast-import this means that the paths are relative
Expand All @@ -93,7 +93,7 @@ OPTIONS
--no-relative-marks::
Negates a previous --relative-marks. Allows for combining
relative and non-relative marks by interweaving
--(no-)-relative-marks= with the --(import|export)-marks=
--(no-)-relative-marks with the --(import|export)-marks=
options.

--cat-blob-fd=<fd>::
Expand Down
2 changes: 2 additions & 0 deletions shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ int main(int argc, char **argv)
int devnull_fd;
int count;

git_extract_argv0_path(argv[0]);

/*
* Always open file descriptors 0/1/2 to avoid clobbering files
* in die(). It also avoids not messing up when the pipes are
Expand Down
5 changes: 2 additions & 3 deletions t/t3701-add-interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ EOF
'

test_expect_success PERL 'setup fake editor' '
cat >fake_editor.sh <<EOF
EOF
>fake_editor.sh &&
chmod a+x fake_editor.sh &&
test_set_editor "$(pwd)/fake_editor.sh" &&
test_set_editor "$(pwd)/fake_editor.sh"
'

test_expect_success PERL 'dummy edit works' '
Expand Down

0 comments on commit be0dca3

Please sign in to comment.