Skip to content

Commit

Permalink
Using simpler git command to get current commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Jun 4, 2024
1 parent a2706cf commit 974d677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitInfo/build/GitInfo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
DependsOnTargets="_GitRoot"
Condition="'$(GitRoot)' != '' And '$(GitCommit)' == ''">

<Exec Command='$(GitExe) -c log.showSignature=false log --format=format:$(_ShortShaFormat) -n 1'
<Exec Command='$(GitExe) rev-parse HEAD'
EchoOff='true'
StandardErrorImportance="low"
StandardOutputImportance="low"
Expand Down

0 comments on commit 974d677

Please sign in to comment.