-
Notifications
You must be signed in to change notification settings - Fork 8
Cannot add a remote repository through settings UI #746
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
Comments
Thank you for logging this and for your suggestions! Breaking this down a little bit with suggestions (let us know if this doesn't match your experience):
Related issue: #375 |
@isc-pbarton , For the first bug you list:
the current version does not even attempt to add the remote (as far as I can tell). I don't even get an error... only "Settings successfully saved". For the second bug you list, I did not attempt to update an existing remote repository value (Say to simulate correcting a typo). I did find myself manually reloading the page just to be certain I was looking at the current config. I get wanting to track New vs Update scenarios. |
I just found I did try first configuring an existing SSH key, but that still did not allow me to configure the remote through the settings UI. (again, no helpful feedback provided through the settings page) Another UX point: I noticed that if I define an invalid key file, I get a button that looks like it should help me set up an SSH key. I think it would be helpful to also provide this when no key is defined (in addition to the help text that is already there). This is another on-boarding point that I can see as a frustration/blocker for an inexperienced git user. (between manually configuring my remote and setting an SSH key through the UI, I was eventually able to push commits to a remote repository. My initial issue that the settings page is unclear when there are issues still stands.) |
For what it's worth, when I run |
I'm using v2.10 of the module. I ran
do ##class(SourceControl.Git.API).Configure()
and chose the option to first initialize an empty repository. (I made a few test commits locally to get familiar with the UI.When I went to connect my local repo to a remote, I realized that not only does the Settings UI not actually save the value I put into the "Remote Repository" setting, but it also does not set up a new remote in the local git config:
git remote origin add [url]
. (If I manually configure the remote withgit remote add origin ...
, the settings page does pick that up.)I would also recommend 2 additional things:
origin
defined, so you do not accidentally clobber an existing value. (just in case the UI had a stale config)git branch --remote
. If the url is correct (and the ssh config has been setup correctly?), it should list out all the branches available on the remote.git branch --remote
simply returns nothing.git fetch origin
which should update all the remote refs without altering the state of local branches.The text was updated successfully, but these errors were encountered: