【发布时间】:2013-08-25 02:14:29
【问题描述】:
当我尝试打开存储库时,我正在使用 Git。那是在 Windows7 虚拟机和作为主机的 Kubuntu 13.04 之间的共享文件夹上。 Git 突然关闭,在控制台中:
Error in startup script: child process exited abnormally
while executing
"exec /usr/lib/git-core/git-config --global --unset gui.recentrepo {^/home/acuellar /MÁquinas Virtuales/CompartidaC#/BS2-BASE2\.Utils$}"
("eval" body line 1)
invoked from within
"eval exec $opt $cmdp $args"
(procedure "git" line 23)
invoked from within
"git config --global --unset gui.recentrepo "^$p\$""
(procedure "_unset_recentrepo" line 3)
invoked from within
"_unset_recentrepo $p"
(procedure "_get_recentrepos" line 7)
invoked from within
"_get_recentrepos"
(procedure "choose_repository::pick" line 82)
invoked from within
"choose_repository::pick"
invoked from within
"if {[catch {
set _gitdir $env(GIT_DIR)
set _prefix {}
}]
&& [catch {
# beware that from the .git dir this sets _gitdir to .
# and _prefix t..."
(file "/usr/lib/git-core/git-gui" line 1234)
谢谢!
【问题讨论】:
-
您正在使用 git-gui 并且那里的 Tcl 堆栈跟踪显示它实际上尝试运行失败的
git config命令。您可以尝试从有问题的存储库中运行该命令,看看它是如何响应的。上面报告的目录路径对我来说看起来非常奇怪,在“acuellar”目录名称后面附加了许多空格。这显然是在初始存储库选择对话框中选择存储库时 - 实际上不是在存储库中使用 git-gui。 -
我修改了我的用户帐户的“.gitconfig”文件。然后我就可以运行git了。非常感谢。