Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3704
Closed
Open
Issue created Feb 06, 2021 by S.Tsukamoto@S.TsukamotoContributor

Changed Files Dlg: "Revert to revision" fails for renamed files

What steps will reproduce the problem?

  1. Rename a tracked file on your repository. (It doesn't matter if that is committed or just only staged)
  2. Show log
  3. Select any previous commit and click "Compare with working tree"
  4. You see the file in the list as a renamed file
  5. Select the file and click "Revert to revision"

What is the expected output? What do you see instead?

Expectation: The file is renamed to the previous name on your working tree and index.

Instead: You see an error message that says "error: pathspec 'filename' did not match any file(s) known to git"

What version of TortoiseGit and Git are you using? On what operating system?

TortoiseGit 2.11.2.0
git version 2.30.0.windows.2
Windows 10 Home 64bit 20H2 19042.746

Please provide any additional information below.

I guess this is similar to #3668 (closed) that is fixed by e2fa330d...14944a04

Edited Feb 12, 2021 by Sven Strickroth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking