[PATCH Cogito] cg-init breaks if . contains sub-dir
- From
Brandon Philips <brandon@ifup.org>
- Date
- May 9, 2005, 23:39 UTC
- Message-ID
- <20050509233904.GB878@osuosl.org>
Hi Petr,
cg-init has the ability to cg-add all files in the current directory.
But if the current directory has a sub directory cg-init breaks because the `find *` command on line 34 returns directories which cg-add doesn't accept.
Regards
Brandon Philips
Shameless plug: cogito-0.10 available in Gentoo
-- http://ifup.org
---
cg-init: needs update
Index: cg-init =================================================================== --- 972d8624458936868e6f392b40858b7c362af8cd/cg-init (mode:100755) +++ uncommitted/cg-init (mode:100755) @@ -31,7 +31,7 @@ echo "Cloned (origin $uri available as branch \"origin\")" else git-read-tree # Seed the dircache - find * | xargs cg-add + find * ! -type d | xargs cg-add cg-commit -C -m"Initial commit" -e fi exit 0