Skip to content

GitHub remote needn't end in .git #87

@danvk

Description

@danvk

Looks like the assumption here is incorrect:

$ github pileup/README.md
Traceback (most recent call last):
  File "/Users/danvk/github/git-helpers/github/github", line 56, in <module>
    repo_url = github.make_github_url(remote)
  File "/Users/danvk/github/git-helpers/util/github.py", line 22, in make_github_url
    assert '.git' in remote
AssertionError
$ git remote -v
origin  https://github.com/hammerlab/internal-tools (fetch)
origin  https://github.com/hammerlab/internal-tools (push)

I guess the .git for a GitHub remote is optional, or perhaps git quietly adds it itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions