Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 378736

Summary: Pull tries to use remote named 'origin' when it doesn't exist
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-05-07 16:13:04 EDT
Build id: I20120504-1158 on orion.eclipse.org

1. Create a new repository on GitHub.
2. Init a new repo using Orion.
3. Add a new remote to the Orion repo named 'github' whose URL points to the GitHub repo.
4. Commit some code to the master branch and push to 'github'.
5. Go to Repositories page, try to Pull.
> Error 'No value for key branch.master.merge found in configuration'
6. Add a config setting:
> branch.master.merge = refs/heads/master 
7. Try to pull again.
> Error 'No value for key remote.origin.url found in configuration'

This confused me. My repo config doesn't mention 'origin' anywhere. Is Pull hardwired to use 'origin' as the remote name? I expected it to use the name of my only remote (github).

I can fix this by adding 
> branch.master.remote = github
to my config, but I'd like to know if we can handle this better.
Comment 1 Mark Macdonald CLA 2012-05-07 16:14:03 EDT
PS: this is probably not the recommended way to populate a new GitHub repo using Orion... I always forgot what the correct steps are.
Comment 2 John Arthorne CLA 2015-05-05 15:50:14 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 3 John Arthorne CLA 2015-05-05 16:02:54 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html