<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23796">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">deps/Makefile: fix checkout logic for branches<br><br>Checkout origin/$branch instead of $branch. Otherwise git will just use<br>the local version of branch and stay at the same commit.<br><br>Note that Ia846863eff1734eca469257b9a8d5e653a45e835 changes the lines<br>which still have "master" to the commit. Fixing this is still useful<br>however, if a branch name is used in local testing.<br><br>Change-Id: If6bd440598d375a9947cb3a4fd88ae5809756e0e<br>---<br>M deps/Makefile<br>1 file changed, 9 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/deps/Makefile b/deps/Makefile</span><br><span>index 64e293b..8dc2a82 100644</span><br><span>--- a/deps/Makefile</span><br><span>+++ b/deps/Makefile</span><br><span>@@ -152,7 +152,15 @@</span><br><span>     cd $(1) && git remote set-url origin $(2)/$(1) && git fetch</span><br><span> endif</span><br><span> ifneq ($$($(1)_HEAD),$($(1)_commit))</span><br><span style="color: hsl(0, 100%, 40%);">-    cd $(1) && git fetch && git checkout -q -f "$($(1)_commit)"</span><br><span style="color: hsl(120, 100%, 40%);">+ cd $(1) && \</span><br><span style="color: hsl(120, 100%, 40%);">+          git fetch && \</span><br><span style="color: hsl(120, 100%, 40%);">+                if git rev-parse "origin/$($(1)_commit)" 2>/dev/null; then \</span><br><span style="color: hsl(120, 100%, 40%);">+                     set -x && \</span><br><span style="color: hsl(120, 100%, 40%);">+                   git checkout -q -f "origin/$($(1)_commit)"; \</span><br><span style="color: hsl(120, 100%, 40%);">+               else \</span><br><span style="color: hsl(120, 100%, 40%);">+                        set -x && \</span><br><span style="color: hsl(120, 100%, 40%);">+                   git checkout -q -f "$($(1)_commit)"; \</span><br><span style="color: hsl(120, 100%, 40%);">+              fi</span><br><span> endif</span><br><span> endif</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23796">change 23796</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/c/osmo-ttcn3-hacks/+/23796"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If6bd440598d375a9947cb3a4fd88ae5809756e0e </div>
<div style="display:none"> Gerrit-Change-Number: 23796 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>