SourceTree:打开存储库时出错(OSX)

时间:2015-01-05 14:32:50

标签: macos git symbols atlassian-sourcetree

当我打开SourceTree并尝试打开我的存储库(或克隆然后打开)时,我收到此错误:

'git log' failed with code 5:'

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

'

我安装了命令行工具(the answer here suggests its needed)。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

问题源于SourceTree默认使用嵌入式Git的事实。它可能与系统版本不同,在某些情况下可能会失败。

解决这个问题的最简单方法之一是告诉SourceTree使用系统Git:

vct_numbers <- c(1,2,3,4)
vct_colours <- c("blue", "green", "yellow")
lst_coll <- list(vct_numbers = vct_numbers, vct_colours  = vct_colours)