Skip to content

Commit

Permalink
Fix abbreviated commit hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
amorilia committed Oct 29, 2012
1 parent ae10ae6 commit 913fcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NifSkope.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contains(GIT_HEAD, "ref:") {
count(GIT_HEAD, 1) {
# single component, hopefully the commit hash
# fetch first seven characters (abbreviated hash)
GIT_HEAD = $$find(GIT_HEAD, "^.......") # FIXME does not work for some reason
GIT_HEAD ~= s/^(.......).*/\\1/
DEFINES += NIFSKOPE_REVISION=\\\"$$GIT_HEAD\\\"
}

Expand Down

0 comments on commit 913fcf2

Please sign in to comment.