Skip to content

Commit 56e1530

Browse files
committed
TEMP
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent 5faf954 commit 56e1530

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

git-stacked-rebase.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ REWRITTEN_LIST_BACKUP_FILE_PATH="$STACKED_REBASE_DIR/${filenames.rewrittenList}"
493493
494494
#echo "REBASE_MERGE_DIR $REBASE_MERGE_DIR; STACKED_REBASE_DIR $STACKED_REBASE_DIR;"
495495
496-
cat "$REWRITTEN_LIST_FILE_PATH" > "$REWRITTEN_LIST_BACKUP_FILE_PATH"
496+
cp "$REWRITTEN_LIST_FILE_PATH" "$REWRITTEN_LIST_BACKUP_FILE_PATH"
497497
498498
`;
499499

@@ -1393,7 +1393,9 @@ if (!module.parent) {
13931393
process.stderr.write(e.message);
13941394
process.exit(1);
13951395
} else {
1396-
throw e;
1396+
console.error(e);
1397+
process.exit(1);
1398+
// throw e;
13971399
}
13981400
});
13991401
}

parse-todo-of-stacked-rebase/parseNewGoodCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function parseNewGoodCommands(
2020

2121
logGoodCmds(goodCommands);
2222

23-
const pathOfRewrittenList: string = path.join(repo.workdir(), ".git", "stacked-rebase", filenames.rewrittenList);
23+
const pathOfRewrittenList: string = path.join(repo.path(), "stacked-rebase", filenames.rewrittenList);
2424
const rewrittenList: string = fs.readFileSync(pathOfRewrittenList, { encoding: "utf-8" });
2525
const rewrittenListLines: string[] = rewrittenList.split("\n").filter((line) => !!line);
2626

test/experiment.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ export async function testCase() {
119119

120120
execSyncInRepo(`${defaultGitCmd} rebase --continue`);
121121

122+
execSyncInRepo(`${defaultGitCmd} status`);
123+
execSyncInRepo("read");
124+
122125
/**
123126
* now some partial branches will be "gone" from the POV of the latestBranch<->initialBranch.
124127
*

0 commit comments

Comments
 (0)