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

clone: Strip trailing '.git' from dir names for non-bare repos #540

Merged
merged 3 commits into from
Jan 12, 2022

Conversation

craigds
Copy link
Member

@craigds craigds commented Jan 12, 2022

Description

Github adds '.git' to its repository names. Git strips this automatically for non-bare repos, and it seems reasonable for kart to do the same.

Related links:

re #533

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

Github adds '.git' to its repository names. Git strips this
automatically
(https://github.com/git/git/blob/90d242d36e248acfae0033274b524bfa55a947fd/dir.c#L3066
)
and it seems reasonable for kart to do the same.

re #533
@craigds craigds requested a review from olsen232 January 12, 2022 02:50
@craigds craigds changed the title clone: Strip trailing '.git' from dir names clone: Strip trailing '.git' from dir names for non-bare repos Jan 12, 2022
@craigds craigds merged commit e2786b6 into master Jan 12, 2022
@craigds craigds deleted the clone-strip-git-from-dir branch January 12, 2022 04:22
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.

None yet

2 participants