Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git: fix fetch on branch #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

thillux
Copy link
Contributor

@thillux thillux commented Aug 7, 2024

npins was not able to use branches different from the default branch in my use case. A test is added, which tries to use test-branch, while the default upstream branch is main. I had to also fix the default branch for other tests while doing this.

@piegamesde piegamesde requested a review from andir August 7, 2024 10:14
@andir
Copy link
Owner

andir commented Oct 14, 2024

Could you please state the issue this is solving and add a test case?

@thillux
Copy link
Contributor Author

thillux commented Jan 6, 2025

Test is currently WIP. I took me some time to reproduce my issue. After I started fixing the last checkout to the default branch in mkGitRepo, my issue/bug surfaced in the test.

@thillux
Copy link
Contributor Author

thillux commented Jan 6, 2025

Do you have any idea, whats failing in the forgejoSubmodule test? I can't reproduce this locally.

@piegamesde
Copy link
Collaborator

With the changes you've made, HEAD of the generated git repo points to a different rev than previously. You need to either restore the previous HEAD position, or update all test cases to point to a different commit. (Disclaimer: I only briefly looked at the diff and test log, I might be wrong)

@piegamesde
Copy link
Collaborator

Please rebase again, I fixed a bug which was causing weird test failures

Signed-off-by: Markus Theil <[email protected]>
The branch test was not working, until I fixed the default
checked out branch in the repository. This was already marked
by a comment as failing.

Signed-off-by: Markus Theil <[email protected]>
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.

3 participants