Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ tryGit
Function
tryGit
scripts/copy-worktree-files.js:93–99 ·
view source on GitHub ↗
(args)
Source
from the content-addressed store, hash-verified
91
}
92
93
function
tryGit(args) {
94
try {
95
return
execGit(args);
96
} catch (error) {
97
return
null;
98
}
99
}
100
101
function
execGit(args, cwd = process.cwd()) {
102
return
execFileSync(
'git'
, args, {
Callers
2
copyWorktreeFiles
Function · 0.85
getMainCheckoutRoot
Function · 0.85
Calls
1
execGit
Function · 0.70
Tested by
no test coverage detected