@saeed42/worktree-worker 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1860,9 +1860,9 @@ git.post("/push", async (c) => {
|
|
|
1860
1860
|
try {
|
|
1861
1861
|
let pushArgs;
|
|
1862
1862
|
if (upToCommit) {
|
|
1863
|
-
pushArgs = ["push", "origin", `${upToCommit}
|
|
1863
|
+
pushArgs = ["push", "origin", `${upToCommit}:refs/heads/${branch}`];
|
|
1864
1864
|
} else {
|
|
1865
|
-
pushArgs = ["push", "origin", branch];
|
|
1865
|
+
pushArgs = ["push", "-u", "origin", branch];
|
|
1866
1866
|
}
|
|
1867
1867
|
log.debug("Executing git push", { args: pushArgs });
|
|
1868
1868
|
const result = await gitService.exec(pushArgs, cwd);
|