You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mostly use it to run git commands. All works smoothly in the script, but breaks in the service. Certain git commands (the ones talking to remote) hanging the shell and entire script. It doesn't show any error, and stdout/stderr are empty. For example here:
///< check if our repo is added as remote, if not - add it
var result = shellCmd("git remote -v", prjObj.path);
if(result.includes(config.gitRemoteName))
{
log(`[GIT]: Already contains ${config.gitRemoteName} as second remote`);
}
else
{
log(`[GIT]: Adding ${config.gitRemoteName} as second remote`);
shellCmd(`git remote add ${config.gitRemoteName} ${prjObj.repo}`, prjObj.path);
}
///< get fresh head and make one push just in case
prjObj.head = shellCmd("git rev-parse HEAD", prjObj.path).toString();
shellCmd(`git push ${config.gitRemoteName} --force`, prjObj.path);
Only git push --force fails, everything else executes normally. I have number of pulls, updates etc across the script, they all fail similarly.
What could be the problem? Credential manager? System user limitations etc.?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have trouble figuring out the route cause of my problem. Any help is appreciated.
I'm running on
node v22.14.0andnpm v10.9.2and latest version ofnode-windowsMy script has multiple call of a
spawnSync():I mostly use it to run git commands. All works smoothly in the script, but breaks in the service. Certain git commands (the ones talking to remote) hanging the shell and entire script. It doesn't show any error, and stdout/stderr are empty. For example here:
Only
git push --forcefails, everything else executes normally. I have number of pulls, updates etc across the script, they all fail similarly.What could be the problem? Credential manager? System user limitations etc.?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions