Show More
@@ -37,7 +37,6 b' from dulwich.errors import (' | |||||
37 | MissingCommitError, ObjectMissing, HangupException, |
|
37 | MissingCommitError, ObjectMissing, HangupException, | |
38 | UnexpectedCommandError) |
|
38 | UnexpectedCommandError) | |
39 | from dulwich.repo import Repo as DulwichRepo |
|
39 | from dulwich.repo import Repo as DulwichRepo | |
40 | from dulwich.server import update_server_info |
|
|||
41 |
|
40 | |||
42 | import rhodecode |
|
41 | import rhodecode | |
43 | from vcsserver import exceptions, settings, subprocessio |
|
42 | from vcsserver import exceptions, settings, subprocessio | |
@@ -200,7 +199,6 b' class GitRemote(RemoteBase):' | |||||
200 | def is_empty(self, wire): |
|
199 | def is_empty(self, wire): | |
201 | repo_init = self._factory.repo_libgit2(wire) |
|
200 | repo_init = self._factory.repo_libgit2(wire) | |
202 | with repo_init as repo: |
|
201 | with repo_init as repo: | |
203 |
|
||||
204 | try: |
|
202 | try: | |
205 | has_head = repo.head.name |
|
203 | has_head = repo.head.name | |
206 | if has_head: |
|
204 | if has_head: | |
@@ -1359,9 +1357,12 b' class GitRemote(RemoteBase):' | |||||
1359 | return BinaryEnvelope(result_libgit) |
|
1357 | return BinaryEnvelope(result_libgit) | |
1360 |
|
1358 | |||
1361 | @reraise_safe_exceptions |
|
1359 | @reraise_safe_exceptions | |
1362 | def update_server_info(self, wire): |
|
1360 | def update_server_info(self, wire, force=False): | |
1363 | repo = self._factory.repo(wire) |
|
1361 | cmd = ['update-server-info'] | |
1364 | update_server_info(repo) |
|
1362 | if force: | |
|
1363 | cmd += ['--force'] | |||
|
1364 | output, __ = self.run_git_command(wire, cmd) | |||
|
1365 | return output.splitlines() | |||
1365 |
|
1366 | |||
1366 | @reraise_safe_exceptions |
|
1367 | @reraise_safe_exceptions | |
1367 | def get_all_commit_ids(self, wire): |
|
1368 | def get_all_commit_ids(self, wire): |
General Comments 0
You need to be logged in to leave comments.
Login now