diff --git a/base/src/macports1.0/macports.tcl b/base/src/macports1.0/macports.tcl
index 576ff73..ac9bf15 100644
a
|
b
|
proc mportsync {{optionslist {}}} { |
2227 | 2227 | incr numfailed |
2228 | 2228 | continue |
2229 | 2229 | } |
2230 | | } elseif {$git_cmd != "" && [file exists $portdir/.git]} { |
2231 | | set git_commandline "pushd $portdir ; $git_cmd pull --rebase ; popd" |
| 2230 | } elseif {$git_cmd != "" && ![catch {exec sh -c "cd ${portdir} && $git_cmd rev-parse --is-inside-work-tree"} result]} { |
| 2231 | # determine what type of git repository this is |
| 2232 | if {![catch {exec sh -c "cd ${portdir} && $git_cmd config --local --get svn-remote.svn.url"} result]} { |
| 2233 | set git_action "svn rebase" |
| 2234 | } else { |
| 2235 | set git_action "pull" |
| 2236 | } |
| 2237 | set git_commandline "cd ${portdir} && $git_cmd $git_action" |
2232 | 2238 | ui_debug $git_commandline |
2233 | 2239 | if { |
2234 | 2240 | [catch { |
… |
… |
proc mportsync {{optionslist {}}} { |
2247 | 2253 | }] |
2248 | 2254 | } { |
2249 | 2255 | ui_debug "$::errorInfo" |
2250 | | ui_error "Synchronization of the local ports tree failed doing a git pull --rebase" |
| 2256 | ui_error "Synchronization of the local ports tree failed doing a git pull" |
2251 | 2257 | incr numfailed |
2252 | 2258 | continue |
2253 | 2259 | } |