[oe-commits] Jonathan Liu : classes/buildhistory: record removals in buildhistory directory
git at git.openembedded.org
git at git.openembedded.org
Mon Jun 10 15:39:21 UTC 2013
Module: openembedded-core.git
Branch: dylan
Commit: a27f04ac89b8e58931b7792fbd1adeabef21f7b0
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a27f04ac89b8e58931b7792fbd1adeabef21f7b0
Author: Jonathan Liu <net147 at gmail.com>
Date: Fri May 31 11:09:14 2013 +0000
classes/buildhistory: record removals in buildhistory directory
"git add ." does not record files that were removed in the buildhistory
directory. Specify the -A flag to also record removals.
This was discovered by the following warning added in Git 1.8.3:
warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal',
whose behaviour will change in Git 2.0 with respect to paths you removed.
(From OE-Core master rev: a45a247e2cfa58892a0c9eb050d603a38cd839db)
Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/buildhistory.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 1ac1a8b..ecff637 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -500,7 +500,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
More information about the Openembedded-commits
mailing list