Skip to content

Fix missing fetch #113

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

Merged
merged 10 commits into from
May 12, 2022
Merged

Fix missing fetch #113

merged 10 commits into from
May 12, 2022

Conversation

oowekyala
Copy link
Member

Fix #106

Ref problems in pmd/pmd#3960

Cmd.execute_successfully(clone_cmd)
end

Dir.chdir(path) do
execute_reset_cmd(project.type, project.tag)
# this should work with tags, branch names and (full-length) hashes
Cmd.execute_successfully("git fetch --depth 1 origin #{tag}")
Copy link
Member Author

@oowekyala oowekyala May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: i haven't actually checked whether this works for tags. the proper syntax is maybe tags/tagname. will check tomorrow

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look at this - I like the idea to use a fetch here. This will make it easier to reuse the clones, even if upstream changes.

@adangel adangel self-assigned this May 12, 2022
@adangel adangel modified the milestones: next, 1.5.1 May 12, 2022
@adangel adangel merged commit 264536e into pmd:master May 12, 2022
@oowekyala oowekyala deleted the fix-missing-fetch branch May 12, 2022 14:35
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.

git clone/checkout fails when using commit sha1 as tag
2 participants