History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3259
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Steve Luo
Reporter: Alexey Shumkin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Git submodule changing diff cannot be viewed. Unexpected error is shown instead

Created: 16/Sep/18 08:47 PM   Updated: 02/Dec/24 02:01 PM
Component/s: None
Affects Version/s: 8.0.14
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
Operating System Linux 4.4.0-134-generic, amd64
JVM OpenJDK 64-Bit Server VM 1.7.0_111, Oracle Corporation
QuickBuild Version 8.0.14 - Mon Jul 30 09:20:03 UTC 2018


 Description  « Hide
I have submodules in projects
When I try to see the diff of submodule change in SCM changes of a build, I get "There is a problem" error.

Message: Failed to run command: git show 1e4531be5c3f16d43575b5228f85d4b4845d4488:lib/MSBuildTasks
Command return code: 128
Command error output: fatal: bad object 1e4531be5c3f16d43575b5228f85d4b4845d4488:lib/MSBuildTasks

Root cause:

com.pmease.quickbuild.QuickbuildException: Failed to run command: git show 1e4531be5c3f16d43575b5228f85d4b4845d4488:lib/MSBuildTasks
Command return code: 128
Command error output: fatal: bad object 1e4531be5c3f16d43575b5228f85d4b4845d4488:lib/MSBuildTasks
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.buildException(Commandline.java:516)
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.checkReturnCode(Commandline.java:531)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:106)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:95)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:87)
at com.pmease.quickbuild.plugin.scm.git.GitCli.show(GitCli.java:495)
at com.pmease.quickbuild.plugin.scm.git.GitSourceViewSupport.readSourceByEdition(GitSourceViewSupport.java:52)
at com.pmease.quickbuild.repositorysupport.WorkingDirLocator$SourceViewJob.execute(WorkingDirLocator.java:76)
at com.pmease.quickbuild.grid.NodeJobExecuteJob.execute(NodeJobExecuteJob.java:25)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:129)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Steps:
1. Setup config for Git repository with submodules
2. Push a submodule change
3. Run a build.
4. After build completed got to SCM changes. "By file". Click "View" or "Diff" for a submodule change. Observe "There is a problem" the page

I suppose, some kind of result of `git diff --submodule COMMIT-1 COMMIT-2` has to be shown but not the error

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.