cogito: cannot add dangling symlinks whereas git can

From: Gerrit Pape <>
Date: 2006-01-02 23:15:17
forwarded 313596 upstream

Hi, cg-add refuses to add special files such as dangling symlinks while
git can handle them just fine.  Please see

I'm not sure why cg-add checks files to commit with test -f.

Regards, Gerrit.

diff --git a/cg-add b/cg-add
index 33cdc7f..382f8d5 100755
--- a/cg-add
+++ b/cg-add
@@ -61,9 +61,6 @@ for file in "${ARGS[@]}"; do
 			echo "$file is a directory (use cg-add -r?)" >&2
-	elif [ ! -f "$absfile" ]; then
-		echo "$file does not exist or is not a regular file" >&2
-		error=1
 		echo "$file" >>"$TMPFILE"
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Mon Jan 02 23:09:24 2006

This archive was generated by hypermail 2.1.8 : 2006-01-02 23:09:31 EST