Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop c6ae94b40 -> 8d09f1306


More stable way to determine dirty status across git versions


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/731cdde5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/731cdde5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/731cdde5

Branch: refs/heads/develop
Commit: 731cdde5dea3f764883d30a81e638da1f3950b01
Parents: a8ca2f6
Author: spoonofpower <spoonofpo...@gmail.com>
Authored: Wed Oct 12 17:54:33 2016 -0700
Committer: spoonofpower <spoonofpo...@gmail.com>
Committed: Wed Oct 12 17:54:33 2016 -0700

----------------------------------------------------------------------
 newt/image/image.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/731cdde5/newt/image/image.go
----------------------------------------------------------------------
diff --git a/newt/image/image.go b/newt/image/image.go
index e46fdab..90bfcf4 100644
--- a/newt/image/image.go
+++ b/newt/image/image.go
@@ -558,7 +558,7 @@ func (r *repoManager) getImageManifestPkg(bp 
*builder.BuildPackage) *ImageManife
                repo.Commit = "UNKNOWN"
        } else {
                repo.Commit = strings.TrimSpace(string(res))
-               res, err := util.ShellCommand(fmt.Sprintf("cd %s && git 
diff-index HEAD", path))
+               res, err := util.ShellCommand(fmt.Sprintf("cd %s && git status 
--porcelain", path))
                if err != nil {
                        log.Debugf("Unable to determine dirty state for %s: 
%v", path, err)
                } else {

Reply via email to