From c394b964e8e412bd222f850e01765fb09a9f592c Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackoverflow.com" Date: Wed, 30 Dec 2015 14:41:22 +0000 Subject: [PATCH] When updating .gitignore, "git add" it. --- bin/_blackbox_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index b18c5e5..e81b7b4 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -562,6 +562,7 @@ function vcs_ignore_hg() { # Git function vcs_ignore_git() { vcs_ignore_generic_file "$(vcs_ignore_file_path)" "$file" + git add "$REPOBASE/.gitignore" } # Subversion function vcs_ignore_svn() { @@ -603,6 +604,7 @@ function vcs_notice_hg() { # Git function vcs_notice_git() { vcs_notice_generic_file "$REPOBASE/.gitignore" "$file" + git add "$REPOBASE/.gitignore" } # Subversion function vcs_notice_svn() {