In Git History, "Cannot open the specified file: Unable to obtain commit ID"
Posted: Tue Mar 05, 2024 7:42 pm
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: 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:
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