We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f26ca6 commit d54a6edCopy full SHA for d54a6ed
aliBuild
@@ -714,6 +714,11 @@ def doMain():
714
# We are in development mode, we need to rebuild if the commit hash
715
# is different and if there are extra changes on to.
716
if spec["package"] in develPkgs:
717
+ # Devel package: we get the commit hash from the checked source, not from remote.
718
+ cmd = "cd %s && git rev-parse HEAD" % spec["source"]
719
+ err, out = getstatusoutput(cmd)
720
+ dieOnError(err, "Unable to detect current commit hash.")
721
+ spec["commit_hash"] = out.strip()
722
cmd = "cd %s && git diff -r HEAD && git status --porcelain" % spec["source"]
723
h = Hasher()
724
err = execute(cmd, h)
0 commit comments