aboutsummaryrefslogtreecommitdiff
path: root/lib/remote_add.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/remote_add.tcl')
-rw-r--r--lib/remote_add.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/remote_add.tcl b/lib/remote_add.tcl
index 89e88eeb4..8e3ad166b 100644
--- a/lib/remote_add.tcl
+++ b/lib/remote_add.tcl
@@ -144,8 +144,9 @@ method _add {} {
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 \