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

Bug 337616

Summary: Cannot create a push configuration from an empty repository
Product: [Technology] EGit Reporter: Dobes Vandermeer <dobesv>
Component: CoreAssignee: Matthias Sohn <matthias.sohn>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: stefan.lay
Version: 0.11   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dobes Vandermeer CLA 2011-02-18 17:02:05 EST
When setting up a new remote with a push specification egit refuses to complete the process of adding the push sped if the repository is empty stating an error "Spec doesn't match any refs in source repository".  You are stuck on that screen and can't even "skip" over the push.

I think it should allow me to create a push configuration even if there are no matches refspecs at the time, as those refs might be added later and I might be doing this in a forward-looking manner.  For example if I am planning to fetch into my empty repo and push later on.

Steps to reproduce:

1. Create an empty local git repository with no commits or branches
2. Add a remote and specify that you want to set up both fetch and push
3. You cannot complete the process because you are not allowed to set up a push config without any local branches