We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1bdbfb commit 07bedd4Copy full SHA for 07bedd4
1 file changed
BuildTools/update-assemblyinfo.ps1
@@ -46,14 +46,22 @@ function gitVersion() {
46
if (No-Git) {
47
return 0;
48
}
49
- return [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev;
+ try {
50
+ return [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev;
51
+ } catch {
52
+ return 0;
53
+ }
54
55
56
function gitCommitHash() {
57
58
return "0000000000000000000000000000000000000000";
59
- return (git rev-list --max-count 1 HEAD);
60
61
+ return (git rev-list --max-count 1 HEAD);
62
63
+ return "0000000000000000000000000000000000000000";
64
65
66
67
function gitBranch() {
0 commit comments