<pre style='margin:0'>
Lawrence Velázquez (larryv) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/7671f94b5a92a98314e483c1b9ed90e4e40ed225">https://github.com/macports/macports-base/commit/7671f94b5a92a98314e483c1b9ed90e4e40ed225</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7671f94 Fix version check for Git autostashing
</span>7671f94 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7671f94b5a92a98314e483c1b9ed90e4e40ed225
</span>Author: Lawrence Velázquez <larryv@macports.org>
AuthorDate: Mon Nov 7 15:05:29 2016 -0500
<span style='display:block; white-space:pre;color:#404040;'> Fix version check for Git autostashing
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> "git rebase" learned --autostash in 1.8.4 [1], but "git pull --rebase"
</span><span style='display:block; white-space:pre;color:#404040;'> had to wait until 2.9.0 [2].
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> [1]: https://github.com/git/git/blob/v2.9.0/Documentation/RelNotes/1.8.4.txt#L196-L199
</span><span style='display:block; white-space:pre;color:#404040;'> [2]: https://github.com/git/git/blob/v2.9.0/Documentation/RelNotes/2.9.0.txt#L84-L86
</span>---
src/macports1.0/macports.tcl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 14d628f..6aafa73 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2435,7 +2435,8 @@ proc macports::GetVCSUpdateCmd portDir {
</span> set autostash ""
if {![catch {exec $git --version} git_version_string] && \
[regexp -nocase "git version (\[^ ]+)" $git_version_string -> gitversion] && \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- [vercmp $gitversion 1.8.4] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [vercmp $gitversion 2.9.0] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/git/git/blob/v2.9.0/Documentation/RelNotes/2.9.0.txt#L84-L86
</span> set autostash " --autostash"
}
return [list Git "$git pull --rebase${autostash}" $portDir]
</pre><pre style='margin:0'>
</pre>