diff options
author | Ariel Faigon <github.2009@yendor.com> | 2015-06-09 19:25:15 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-09 20:21:15 +0200 |
commit | 0b1f688bf453c8569d17908f0c3ca218157d80e4 (patch) | |
tree | f09de9666f89854919edfc039e9301f3319be907 /contrib/completion/git-completion.tcsh | |
parent | Merge branch 'maint-1.9' into maint-2.0 (diff) | |
download | git-0b1f688bf453c8569d17908f0c3ca218157d80e4.tar.xz git-0b1f688bf453c8569d17908f0c3ca218157d80e4.zip |
git-completion.tcsh: fix redirect with noclobber
tcsh users who happen to have 'set noclobber' elsewhere in their
~/.tcshrc or ~/.cshrc startup files get a 'File exist' error, and
the tcsh completion file doesn't get generated/updated.
Adding a `!` in the redirect works correctly for both clobber (default)
and 'set noclobber' users.
Reviewed-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: Ariel Faigon <github.2009@yendor.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.tcsh')
-rw-r--r-- | contrib/completion/git-completion.tcsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.tcsh b/contrib/completion/git-completion.tcsh index 6104a42a23..4a790d8f4e 100644 --- a/contrib/completion/git-completion.tcsh +++ b/contrib/completion/git-completion.tcsh @@ -41,7 +41,7 @@ if ( ! -e ${__git_tcsh_completion_original_script} ) then exit endif -cat << EOF > ${__git_tcsh_completion_script} +cat << EOF >! ${__git_tcsh_completion_script} #!bash # # This script is GENERATED and will be overwritten automatically. |