jmalloc / grit

Keep track of your local Git clones.
MIT License
22 stars 3 forks source link

Using `grit set-url owner/repo` sets a non-canonical remote URL #93

Closed ezzatron closed 8 months ago

ezzatron commented 8 months ago

Actual (note leading slash before owner):

$ grit set-url owner/repo
$ git remote -v
origin  git@github.com:/owner/repo.git (fetch)
origin  git@github.com:/owner/repo.git (push)

Expected:

$ grit set-url owner/repo
$ git remote -v
origin  git@github.com:owner/repo.git (fetch)
origin  git@github.com:owner/repo.git (push)