Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ run_git_command
Function
run_git_command
scripts/common/git_helpers.py:6–13 ·
view source on GitHub ↗
(command)
Source
from the content-addressed store, hash-verified
4
5
6
def
run_git_command(command):
7
process = subprocess.run(
8
command,
9
encoding=
'utf8'
,
10
capture_output=True,
11
check=True,
12
)
13
return
process.stdout.strip()
14
15
16
def
git_current_branch():
Callers
2
git_current_branch
Function · 0.85
git_commit_hash
Function · 0.85
Calls
1
run
Method · 0.45
Tested by
no test coverage detected