Skip to content

Commit 319af19

Browse files
committed
refactor: misc
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent 9763102 commit 319af19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-stacked-rebase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ REWRITTEN_LIST_BACKUP_FILE_PATH="$STACKED_REBASE_DIR/${filenames.rewrittenList}"
458458
459459
#echo "REBASE_MERGE_DIR $REBASE_MERGE_DIR; STACKED_REBASE_DIR $STACKED_REBASE_DIR;"
460460
461-
cat "$REWRITTEN_LIST_FILE_PATH" > "$REWRITTEN_LIST_BACKUP_FILE_PATH"
461+
cp "$REWRITTEN_LIST_FILE_PATH" "$REWRITTEN_LIST_BACKUP_FILE_PATH"
462462
463463
`;
464464

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

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

2222
logGoodCmds(goodCommands);
2323

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

0 commit comments

Comments
 (0)