switch -- $opt_action {
fetch {
set c [console::new \
- [mc "fetch %s" $remote] \
- [mc "Fetching the %s" $remote]]
- console::exec $c [list git fetch --all $name]
+ [mc "fetch %s" $name] \
+ [mc "Fetching the %s" $name]]
+ console::exec $c [list git fetch $name]
}
push {
set cmds [list]
if {[info exists env(GIT_SSH)]} {
set ssh $env(GIT_SSH)
}
- lappend cmds [list exec $ssh $host git --git-dir=$path init --bare]
+ lappend cmds [list exec $ssh $host mkdir -p $location && git --git-dir=$path init --bare]
} elseif { ! [regexp {://} $location xx] } {
+ lappend cmds [list exec mkdir -p $location]
lappend cmds [list exec git --git-dir=$location init --bare]
} else {
tk_messageBox \