Bug 327325 - Add support for pushinsteadof configuration
Summary: Add support for pushinsteadof configuration
Status: RESOLVED DUPLICATE of bug 346873
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 06:58 EDT by Christian Halstrick CLA
Modified: 2012-03-01 20:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Halstrick CLA 2010-10-08 06:58:28 EDT
especially for gerrit-related use-cases it would be very useful if EGit/JGit would support the "pushinsteadof" configuration parameter.

Example: imagine you have the following lines in your global git configuration:

        [url "ssh://myname@example.org:29418/"]
                pushInsteadOf = git://example.org/
                
Then whenever you have cloned a repo with 'git clone git://example.org/foo.git' all pushes to this repo will go to 'ssh://myname@example.org:29418/foo.git' without any repository-specific configuration.

See http://www.kernel.org/pub/software/scm/git/docs/git-clone.html#_git_urls_a_id_urls_a
Comment 1 Kevin Sawicki CLA 2012-03-01 20:40:06 EST
Marking this as a duplicate of bug346873 which requests both pushinsteadof and insteadof

*** This bug has been marked as a duplicate of bug 346873 ***