Merge lp:~quartz25/bzr-git/alt-ssh-path into lp:bzr-git

Proposed by Ross Light
Status: Superseded
Proposed branch: lp:~quartz25/bzr-git/alt-ssh-path
Merge into: lp:bzr-git
Diff against target: 22 lines (+10/-1)
1 file modified
remote.py (+10/-1)
To merge this branch: bzr merge lp:~quartz25/bzr-git/alt-ssh-path
Reviewer Review Type Date Requested Status
bzr-git developers Pending
Review via email: mp+26107@code.launchpad.net

This proposal has been superseded by a proposal from 2010-05-26.

Description of the change

Allows alternate paths for the git-receive-pack and git-upload-pack over SSH connections.

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'remote.py'
2--- remote.py 2010-05-17 23:37:25 +0000
3+++ remote.py 2010-05-26 22:13:25 +0000
4@@ -182,8 +182,17 @@
5 ret = self._client
6 self._client = None
7 return ret
8- return git.client.SSHGitClient(self._host, self._port, self._username,
9+ location_config = config.LocationConfig(self.base)
10+ client = git.client.SSHGitClient(self._host, self._port, self._username,
11 thin_packs=thin_packs, report_activity=self._report_activity)
12+ # Set up alternate pack program paths
13+ upload_pack = location_config.get_user_option('git_upload_pack')
14+ if upload_pack:
15+ client.upload_pack_path = upload_pack
16+ receive_pack = location_config.get_user_option('git_receive_pack')
17+ if receive_pack:
18+ client.receive_pack_path = receive_pack
19+ return client
20
21
22 class RemoteGitDir(GitDir):

Subscribers

People subscribed via source and target branches

to all changes: