<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10139">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git-version-gen: Don't check for .git directory<br><br>This check is not in all our repos that use git-version-gen. Indeed it<br>seems to be a leftover of openbsc where I think it wanted to ensure<br>being called in the openbsc subfolder or something? libosmocore e.g.<br>doesn't have it.<br><br>In any case .git being a directory is not always true (if using git<br>worktree) so remove this check.<br><br>Change-Id: Ic14561f3b041bb94d1b60e477b18e37077ce4c32<br>---<br>M git-version-gen<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/39/10139/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/git-version-gen b/git-version-gen</span><br><span>index 8e59c5a..42cf3d2 100755</span><br><span>--- a/git-version-gen</span><br><span>+++ b/git-version-gen</span><br><span>@@ -92,8 +92,8 @@</span><br><span> if test -n "$v"</span><br><span> then</span><br><span>     : # use $v</span><br><span style="color: hsl(0, 100%, 40%);">-elif test -d ./.git \</span><br><span style="color: hsl(0, 100%, 40%);">-    && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \</span><br><span style="color: hsl(120, 100%, 40%);">+elif</span><br><span style="color: hsl(120, 100%, 40%);">+       v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \</span><br><span>      || git describe --abbrev=4 HEAD 2>/dev/null` \</span><br><span>     && case $v in</span><br><span>      [0-9]*) ;;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10139">change 10139</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10139"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic14561f3b041bb94d1b60e477b18e37077ce4c32 </div>
<div style="display:none"> Gerrit-Change-Number: 10139 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>