Git &引用;对象不是“提交”;单击“显示日志”或“刷新”时

Git &引用;对象不是“提交”;单击“显示日志”或“刷新”时,git,smartgit,Git,Smartgit,当我在SmartGit/HGV6.0.7上单击ShowLog时。我总是显示警告“命令失败”: -我不能显示日志。 -我试试看。但我无法解决它 Log.txt log.txt包含调试日志信息。它可以通过log4j.properties进行配置 这意味着log.txt将包含解释“显示日志”失败原因的确切错误。您可以向SmartGit“”页面报告: SmartGit/Hg设置目录的默认位置 Windows %APPDATA%\syntevo\SmartGit\(%APPDATA%是环境变量APPDAT

当我在SmartGit/HGV6.0.7上单击ShowLog时。我总是显示警告“命令失败”: -我不能显示日志。 -我试试看。但我无法解决它

Log.txt
log.txt
包含调试日志信息。它可以通过log4j.properties进行配置


这意味着
log.txt
将包含解释“显示日志”失败原因的确切错误。

您可以向SmartGit“”页面报告:

SmartGit/Hg设置目录的默认位置
Windows
%APPDATA%\syntevo\SmartGit\(%APPDATA%是环境变量APPDATA中定义的路径)
苹果操作系统
~/Library/Preferences/SmartGit/
Linux/Unix
~/.smartgit/
设置目录中值得注意的文件
log.txt
包含调试日志信息。它可以通过log4j.properties进行配置


这意味着
log.txt
将包含解释“显示日志”失败原因的确切错误。

欢迎使用SO。你可能想多描述一下你的情况。然后,更多的人将能够帮助你!听起来SmartGit试图访问它认为是提交但实际上不是的SHA。log.txt中应该有一个stracktrace(参见VonC的答案)。。。把这个寄到smartgit@syntevo.com.see显示内容-
git cat文件-p 226170739742f6e9ecb388888e88dcc3432bb667
谢谢@AndrewC。我执行了你的命令。它在我的项目中显示了一个文件。我用乌龟来显示文件的日志。我可以看到其中的两个。我运行了
git checkout
。但当我打开Smartgit并单击“日志”或“刷新”时,仍然会弹出带有相同信息的警告。如果它是blob而不是commit,则听起来像Smartgit中的bug。检查您正在运行的版本,如果需要升级,并按照@mstrap的建议提交一个bug
16418321 (2014-10-10 13:57:57,193) [main] INFO  q.swt.shellActivation > - Activation change from null to Shell {Command Failed}@1AE7852
16418322 (2014-10-10 13:57:57,194) [QThreadPoolThread-7 (smartgit.arf)] INFO       sc.file.monitor  - Collecting changes, pending trigger file count is 0 (latestSeq=304757)
16418324 (2014-10-10 13:57:57,196) [QThreadPoolThread-7 (smartgit.arf)] INFO       sc.file.monitor  - Collecting changes finished (latestSeq=304758)
16418415 (2014-10-10 13:57:57,287) [main] INFO              q.action  - Performing 'OK' button in window @1AE7852 owner @1DD8D46
16418415 (2014-10-10 13:57:57,287) [main] INFO              q.dialog  - Showed dialog 37 (@1AE7852) '@15D785C - Command Failed' (owner: @1DD8D46)
16418419 (2014-10-10 13:57:57,291) [main] INFO  q.swt.shellActivation  - Activation change from Shell {*Disposed*}@1AE7852 to Shell {huan-am - [C:\workspace\huan-am] - SmartGit/Hg 6.0.7 (for non-commercial use only)}@1DD8D46
16418420 (2014-10-10 13:57:57,292) [main] INFO  smartgit.repository.backgroundScan  - Starting background refreshing.
16419325 (2014-10-10 13:57:58,197) [QThreadPoolThread-7 (smartgit.arf)] INFO       sc.file.monitor  - Collecting changes, pending trigger file count is 0 (latestSeq=304762)
16419326 (2014-10-10 13:57:58,198) [QThreadPoolThread-7 (smartgit.arf)] INFO       sc.file.monitor  - Collecting changes finished (latestSeq=304763)
16419420 (2014-10-10 13:57:58,292) [QThreadPoolThread-7 (smartgit.aYt)] INFO       sc.file.monitor  - Collecting changes, pending trigger file count is 0 (latestSeq=304768)
16419422 (2014-10-10 13:57:58,294) [QThreadPoolThread-7 (smartgit.aYt)] INFO       sc.file.monitor  - Collecting changes finished (latestSeq=304770)
16419422 (2014-10-10 13:57:58,294) [QThreadPoolThread-7 (smartgit.aYt)] INFO  smartgit.repository.backgroundScan  - Running background refresh: []
16424255 (2014-10-10 13:58:03,127) [main] INFO              q.action  - Performing 'log, Log, Show the history for selected file or directory.'
16424285 (2014-10-10 13:58:03,157) [WorkerThread-1] INFO      smartgit.command  - Log [C:\workspace\huan-am] /
16424523 (2014-10-10 13:58:03,395) [WorkerThread-1] WARN       smartgit.review  - Remote 'origin' has ID, but is missing refspecs.
16424524 (2014-10-10 13:58:03,396) [WorkerThread-1] WARN       smartgit.review  - Remote 'huan-am' has ID, but is missing refspecs.
16424581 (2014-10-10 13:58:03,453) [WorkerThread-1] WARN       smartgit.review  - Remote 'origin' has ID, but is missing refspecs.
16424582 (2014-10-10 13:58:03,454) [WorkerThread-1] WARN       smartgit.review  - Remote 'huan-am' has ID, but is missing refspecs.
smartgit.eL: Object 226170739742f6e9ecb388888e88dcc3432bb667 is not a commit.
    at smartgit.oO.b(SourceFile:113)
    at smartgit.oN.a(SourceFile:266)
    at smartgit.oN.a(SourceFile:195)
    at smartgit.oN.a(SourceFile:170)
    at smartgit.aSQ.a(SourceFile:415)
    at smartgit.aSQ.a(SourceFile:119)
    at smartgit.aEC.a(SourceFile:113)
    at smartgit.aEC.a(SourceFile:179)
    at smartgit.bZ.a(SourceFile:42)
    at smartgit.lk.run(SourceFile:103)
    at smartgit.Tw.run(SourceFile:53)
Caused by: org.eclipse.jgit.errors.IncorrectObjectTypeException: Object 226170739742f6e9ecb388888e88dcc3432bb667 is not a commit.
    at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:722)
    at smartgit.oO.b(SourceFile:110)
    ... 10 more
16424974 (2014-10-10 13:58:03,846) [main] INFO              q.dialog  - Show (warn): Command Failed - Executing a command has failed.
16424996 (2014-10-10 13:58:03,868) [main] INFO              q.dialog  - Showing dialog 38 (@EECB5C) '@16917F5 - Command Failed' (owner: @1DD8D46)
16425019 (2014-10-10 13:58:03,891) [main] INFO  q.swt.shellActivation  - Activation change from Shell {huan-am - [C:\workspace\huan-am] - SmartGit/Hg 6.0.7 (for non-commercial use only)}@1DD8D46 to Shell {Command Failed}@EECB5C
16425074 (2014-10-10 13:58:03,946) [main] INFO  q.swt.shellActivation  - Activation remains at Shell {Command Failed}@EECB5C
16426619 (2014-10-10 13:58:05,491) [main] INFO  q.swt.shellActivation  - Activation change from Shell {Command Failed}@EECB5C to null
Windows 
%APPDATA%\syntevo\SmartGit\<major-smartgit-hg-version> (%APPDATA% is the path defined in the environment variable APPDATA)

Mac OS 
~/Library/Preferences/SmartGit/<major-smartgit-hg-version>

Linux/Unix 
~/.smartgit/<major-smartgit-hg-version>