Skip to content

fix: resolve --file from repository subdirectories#2989

Open
ychampion wants to merge 1 commit into
gitui-org:masterfrom
ychampion:fix-file-flag-subdir
Open

fix: resolve --file from repository subdirectories#2989
ychampion wants to merge 1 commit into
gitui-org:masterfrom
ychampion:fix-file-flag-subdir

Conversation

@ychampion

Copy link
Copy Markdown

This Pull Request fixes/closes #2871.

It changes the following:

  • resolves --file paths against the repository root when GitUI starts from a subdirectory
  • keeps current-directory-relative --file paths working
  • adds a regression test for both path forms

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

Validation:

  • make check
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flag --file not working on sub directories

1 participant