Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ getRemotePath
Function
getRemotePath
docs/source/filemap.py:31–33 ·
view source on GitHub ↗
(srcdir)
Source
from the content-addressed store, hash-verified
29
30
31
def
getRemotePath(srcdir):
32
path = gitcmd([
'rev-parse'
,
'--show-prefix'
], cwd=srcdir).strip()
33
return
path.rstrip(
'/'
)
34
35
36
def
getRemoteUrl(srcdir):
Callers
1
buildFileMap
Function · 0.85
Calls
1
gitcmd
Function · 0.85
Tested by
no test coverage detected