chiark / gitweb /
TopGit: Force adding .topdeps on tg-depend
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 28 Oct 2008 17:54:14 +0000 (18:54 +0100)
committerPetr Baudis <pasky@suse.cz>
Fri, 7 Nov 2008 21:24:03 +0000 (22:24 +0100)
Force adding .topdeps, overcomes the case when .* is in .gitignore

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
tg-depend.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index eeb76cd..265198a
@@ -44,6 +44,6 @@ baserev="$(git rev-parse --verify "refs/top-bases/$name" 2>/dev/null)" ||
 ## Record new dependency
 
 echo "$name" >>.topdeps
-git add .topdeps
+git add -f .topdeps
 git commit -m"New TopGit dependency: $name"
 $tg update