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

Warn the user if git-sweep notices that a repo's endpoint is an HTTP URL instead of a git URL #14

Open
closacco opened this issue Jan 25, 2013 · 9 comments
Milestone

Comments

@closacco
Copy link
Member

My repo was created using GitHub for Mac using the default settings. When I git sweep cleanup, it prompts me to authenticate every time it deletes a branch.

@philipforget
Copy link
Member

This is because you cloned the repo over https instead of git, so it cant use your git credentials to do the sweep, prompting you to enter your credentials with every git push origin :branchname, or any action it's calling on behalf of you. git-sweep could potentially store that information, but that seems like it's out of scope. I'd recommend setting up your ssh keys and then replacing your origin with the proper ssh endpoint:

git remote rm origin
git remote add origin [email protected]:someuser/somerepo

@closacco
Copy link
Member Author

This makes sense to me. Let me try properly setting up the remote with a sample repository and ensure that GitHub for Mac still functions.

@robmadole
Copy link
Collaborator

I wonder if the Mac client silently leads you to use the https address. If that were the case, it might be worth adding a provision for this.

@closacco
Copy link
Member Author

I wonder if the Mac client silently leads you to use the https address.

I'm pretty sure it does, I just used the default settings.

@DarrenN
Copy link

DarrenN commented Jan 25, 2013

You can manually edit your .git/config for the repo on your local machine to switch it back to the git:// URL

@philipforget
Copy link
Member

I think a warning if git-sweep notices the remote is not a git endpoint would be enough. Everything else seems out of scope for such a specific tool

@closacco
Copy link
Member Author

You can manually edit your .git/config for the repo on your local machine to switch it back to the git:// URL

This probably works. I used the Settings pane in the Mac app and updated it to the git:// URL and everything works fine.

I think a warning if git-sweep notices the remote is not a git endpoint would be enough.

+1, going to rename this issue.

@robmadole
Copy link
Collaborator

A warning is a good idea, at least you then wouldn't get trapped in a terrible "Enter your password" loop.

Adding this to the next milestone.

@puffIEIn
Copy link

Gut push origin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants