<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/96c46dffd102f568c168d492395c68493d1bc326">https://github.com/macports/macports-base/commit/96c46dffd102f568c168d492395c68493d1bc326</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 96c46dffd Silence stderr from git commands
</span>96c46dffd is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 96c46dffd102f568c168d492395c68493d1bc326
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue May 21 13:32:24 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> Silence stderr from git commands
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/70040
</span>---
src/port1.0/portmain.tcl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portmain.tcl b/src/port1.0/portmain.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 567fea64a..bfd14f23c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portmain.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portmain.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -198,11 +198,11 @@ proc portmain::get_source_date_epoch {} {
</span> ui_debug "get_source_date_epoch: dropping privileges failed: $result"
}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$git ne {} && ![catch {exec -ignorestderr $git -C $portpath rev-parse --is-inside-work-tree}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$git ne {} && ![catch {exec -ignorestderr $git -C $portpath rev-parse --is-inside-work-tree 2> /dev/null}]} {
</span> # Use time of last commit only if there are no uncommitted changes
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {exec -ignorestderr $git -C $portpath status --porcelain $portpath} result]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec -ignorestderr $git -C $portpath status --porcelain $portpath 2> /dev/null} result]} {
</span> if {$result eq ""} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {exec -ignorestderr $git -C $portpath log -1 --pretty=%ct $portpath} result]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec -ignorestderr $git -C $portpath log -1 --pretty=%ct $portpath 2> /dev/null} result]} {
</span> set source_date_epoch_cached $result
if {[info exists prev_euid]} {
seteuid 0
</pre><pre style='margin:0'>
</pre>