* [PATCH] Fix cg-commit to handle files with leading '-'
@ 2005-05-11 0:55 Jonas Fonseca
0 siblings, 0 replies; only message in thread
From: Jonas Fonseca @ 2005-05-11 0:55 UTC (permalink / raw
To: Petr Baudis; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
Hi Pasky,
cg-commit dies with "update-cache failed" message when adding files
beginning with a '-' because the '--' arg is missing.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
--
Jonas Fonseca
[-- Attachment #2: fix-cg-commit.patch --]
[-- Type: text/plain, Size: 728 bytes --]
Index: cg-commit
===================================================================
--- 673ad20e23591a8e5bdf18a755a5dea1755b7bf6/cg-commit (mode:100755)
+++ uncommitted/cg-commit (mode:100755)
@@ -140,13 +140,13 @@
if [ ! "$ignorecache" ]; then
if [ "$customfiles" ]; then
- git-update-cache --add --remove "${commitfiles[@]}" \
+ git-update-cache --add --remove -- "${commitfiles[@]}" \
|| die "update-cache failed"
export GIT_INDEX_FILE=$(mktemp -t gitci.XXXXXX)
git-read-tree HEAD
fi
# TODO: Do the proper separation of adds, removes, and changes.
- git-update-cache --add --remove "${commitfiles[@]}" \
+ git-update-cache --add --remove -- "${commitfiles[@]}" \
|| die "update-cache failed"
fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-11 0:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11 0:55 [PATCH] Fix cg-commit to handle files with leading '-' Jonas Fonseca
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).