Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] buildhistory: record removals with Git 2.0 and later
@ 2013-05-31  9:42 Jonathan Liu
  2013-05-31 10:29 ` Jonathan Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Liu @ 2013-05-31  9:42 UTC (permalink / raw)
  To: openembedded-core

There is a behavior change with Git 2.0 where "git add ." will no
longer record removals by default unless -A (--all) is specified.
Change to "git add -A ." so removals are recorded with Git 2.0 and
later.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/classes/buildhistory.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index d39408b..b12da4a 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -510,7 +510,7 @@ END
 		repostatus=`git status --porcelain | grep -v " metadata-revs$"`
 		HOSTNAME=`hostname 2>/dev/null || echo unknown`
 		if [ "$repostatus" != "" ] ; then
-			git add .
+			git add -A .
 			# porcelain output looks like "?? packages/foo/bar"
 			# Ensure we commit metadata-revs with the first commit
 			for entry in `echo "$repostatus" | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do
-- 
1.8.3



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-31 10:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31  9:42 [PATCH] buildhistory: record removals with Git 2.0 and later Jonathan Liu
2013-05-31 10:29 ` Jonathan Liu
2013-05-31 10:31   ` Jonathan Liu
2013-05-31 10:42   ` Paul Eggleton
2013-05-31 10:50     ` Paul Eggleton
2013-05-31 10:52       ` Jonathan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox