Skip to content

Commit 41138c2

Browse files
committed
fix
1 parent 581853d commit 41138c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Rubjerg.Graphviz/Rubjerg.Graphviz.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</ReadLinesFromFile>
9898

9999
<!-- 4. Is working tree dirty? -->
100-
<Exec Command="git diff --quiet HEAD || echo dirty > &quot;$(_GitTmpFile)&quot;" />
100+
<Exec Command="git diff --quiet HEAD &amp;&amp; echo yes || echo no > &quot;$(_GitTmpFile)&quot;" />
101101
<ReadLinesFromFile File="$(_GitTmpFile)">
102102
<Output TaskParameter="Lines" PropertyName="IsDirty"/>
103103
</ReadLinesFromFile>
@@ -113,12 +113,12 @@
113113
<BaseVersion>$([System.Text.RegularExpressions.Regex]::Replace($(LatestTag), '^v', ''))</BaseVersion>
114114

115115
<!-- Case 1: On exact tag, clean -->
116-
<_ResolvedVersion Condition="'$(ExactTag)' != '' and '$(IsDirty)' == ''">
116+
<_ResolvedVersion Condition="'$(ExactTag)' != '' and '$(IsDirty)' == 'no'">
117117
$(BaseVersion)
118118
</_ResolvedVersion>
119119

120120
<!-- Case 2: master is descendant of HEAD and clean -->
121-
<_ResolvedVersion Condition="'$(_ResolvedVersion)' == '' and '$(IsDirty)' == '' and '$(MasterDescendant)' == 'yes'">
121+
<_ResolvedVersion Condition="'$(_ResolvedVersion)' == '' and '$(IsDirty)' == 'no' and '$(MasterDescendant)' == 'yes'">
122122
$(BaseVersion)-alpha-$(CommitHash)
123123
</_ResolvedVersion>
124124

0 commit comments

Comments
 (0)