In Git History, "Cannot open the specified file: Unable to obtain commit ID"
Oxygen general issues.
-
- Posts: 2
- Joined: Tue Mar 05, 2024 7:12 pm
In Git History, "Cannot open the specified file: Unable to obtain commit ID"
Post by arkadianriver »
Hi..
I want to use DiffFiles to see the changes to a file from its previous commit in the git history. I double-click on the file in the git history and get this:
I'm in the local repo, I've authenticated with the Azure DevOps Git repository with a Personal Access Token, and I'm able to pull changes okay. It looks like the DiffFiles view is attempting to view the two versions of the file with a git://<commithash>/<filename> style URL. Would any of that matter? When it compares with the current version, it opens the current version just fine. It just can't access versions of files in the history. I hope I don't need to authenticate with SSH instead. Here's the URL style of the remote:
Thanks for any help!
- Gary
P.S. Oh, I forgot to say, I'm using v5.3.0 of the Git Staging plugin
I want to use DiffFiles to see the changes to a file from its previous commit in the git history. I double-click on the file in the git history and get this:
- image.png (7.15 KiB) Viewed 513 times
Code: Select all
PS C:\Users\gary.faircloth\Git\repo> git remote -v
origin https://my-org@dev.azure.com/my-org/my-project/_git/my-repo (fetch)
origin https://my-org@dev.azure.com/my-org/my-project/_git/my-repo (push)
- Gary
P.S. Oh, I forgot to say, I'm using v5.3.0 of the Git Staging plugin
- image.png (3.04 KiB) Viewed 510 times
-
- Posts: 406
- Joined: Mon May 09, 2016 9:37 am
Re: In Git History, "Cannot open the specified file: Unable to obtain commit ID"
Post by sorin_carbunaru »
Hi,
In your Oxygen installation folder please create a "logback.xml" file with the following content:
Start Oxygen, reproduce the problem in the Git Client diff tool and then close Oxygen. On your Desktop you should have an "oxygenLog" folder. Add it to an archive and send it to support@oxygenxml.com.
Best wishes,
Sorin Carbunaru
Oxygen XML Editor
In your Oxygen installation folder please create a "logback.xml" file with the following content:
Code: Select all
<configuration>
<appender name="R2" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/Desktop/oxygenLog/oxygen.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/Desktop/oxygenLog/oxygen%i.log.gz</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>20</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>12MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%r %marker %p [ %t ] %c - %m%n</pattern>
</encoder>
</appender>
<logger name="com.oxygenxml.git" level="debug"/>
<root level="error">
<appender-ref ref="R2" />
</root>
</configuration>
Best wishes,
Sorin Carbunaru
Oxygen XML Editor
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service