File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
import threading
10
10
import time
11
11
12
- from git import Repo , InvalidGitRepositoryError
12
+ import git
13
13
14
14
from cm .instance import Instance
15
15
from cm .services import ServiceRole
@@ -780,7 +780,7 @@ def _get_remote_url(repo):
780
780
repo_path = self .app .path_resolver .galaxy_home
781
781
try :
782
782
if os .path .exists (repo_path ):
783
- repo = Repo (repo_path )
783
+ repo = git . Repo (repo_path , odbt = git . GitCmdObjectDB )
784
784
if repo and not repo .bare :
785
785
hexsha = repo .head .commit .hexsha
786
786
authored_date = time .strftime ("%d %b %Y" , time .gmtime (
@@ -789,7 +789,7 @@ def _get_remote_url(repo):
789
789
repo_url = _get_remote_url (repo )
790
790
return {'hexsha' : hexsha , 'authored_date' : authored_date ,
791
791
'active_branch' : active_branch , 'repo_url' : repo_url }
792
- except InvalidGitRepositoryError :
792
+ except git . InvalidGitRepositoryError :
793
793
log .debug ("No git repository at {0}?" .format (repo_path ))
794
794
return {}
795
795
You can’t perform that action at this time.
0 commit comments