aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/choose_repository.tcl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/choose_repository.tcl b/lib/choose_repository.tcl
index 5b361cc424..1711f7ca55 100644
--- a/lib/choose_repository.tcl
+++ b/lib/choose_repository.tcl
@@ -323,7 +323,7 @@ method _write_local_path {args} {
}
method _git_init {} {
- if {[catch {file mkdir $local_path} err]} {
+ if {[catch {git init $local_path} err]} {
error_popup [strcat \
[mc "Failed to create repository %s:" $local_path] \
"\n\n$err"]
@@ -337,13 +337,6 @@ method _git_init {} {
return 0
}
- if {[catch {git init} err]} {
- error_popup [strcat \
- [mc "Failed to create repository %s:" $local_path] \
- "\n\n$err"]
- return 0
- }
-
_append_recentrepos [pwd]
set ::_gitdir .git
set ::_prefix {}