diff options
author | Ariel Faigon <github.2009@yendor.com> | 2015-06-09 10:25:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-09 11:21:15 -0700 |
commit | 0b1f688bf453c8569d17908f0c3ca218157d80e4 (patch) | |
tree | f09de9666f89854919edfc039e9301f3319be907 /contrib | |
parent | 282616c72d1d08a77ca4fe1186cb708c38408d87 (diff) | |
download | git-0b1f688bf453c8569d17908f0c3ca218157d80e4.tar.gz |
git-completion.tcsh: fix redirect with noclobberaf/tcsh-completion-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')
-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. |