From 24588bf223065e5244fd72c97a8a621055a7e87d Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 13 Aug 2008 22:15:45 -0700 Subject: [PATCH] Force adding the .topmsg and .topdep files. If the .gitignore in effect is ignoring the .topmsg and .topdeps files, tg create will fail trying to add these files. Add the '-f option to these add commands to force the files to be added anyway. Signed-off-by: David Brown --- tg-create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tg-create.sh b/tg-create.sh index 939af33..3f33fa8 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -100,7 +100,7 @@ git update-ref "refs/top-bases/$name" "HEAD" "" git checkout -b "$name" echo "$deps" | sed 's/ /\n/g' >"$root_dir/.topdeps" -git add "$root_dir/.topdeps" +git add -f "$root_dir/.topdeps" author="$(git var GIT_AUTHOR_IDENT)" author_addr="${author%> *}>" @@ -118,7 +118,7 @@ author_addr="${author%> *}>" Signed-off-by: $author_addr EOT } >"$root_dir/.topmsg" -git add "$root_dir/.topmsg" +git add -f "$root_dir/.topmsg" -- 2.11.4.GIT