braver/GitHubTools

Github repository not found: Failed to read url of remote 'origin'

Opened this issue · 0 comments

First off, thank you for this package! I use the functionality constantly.

Started seeing this error message recently while trying any of the package commands:

Github repository not found: Failed to read url of remote 'origin'

After some debugging I think I found the root cause: with a recent package name cleanup, the settings file path changed from GitHub Tools.sublime-settings (spaces) to GitHub Tools.sublime-settings (no spaces).

This means my already existing preferences (which I had in ~/Library/Application Support/Sublime Text 3/Packages/User/Github Tools.sublime-settings, and which had a gitlab.com entry in github_hostnames) were now being ignored, and so the commands were failing on my repos hosted on gitlab.com. The solution was to rename that file to the now expected name GitHubTools.sublime-settings (overwriting the new blank state one that got created in the update).

Sharing this in case others bump into the issue.

Don't know if it would be possible / worth it to provide a backwards-compatible reading of old preferences (or a warning at some point if old preference file found). Feel free to close!