Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67b0195

Browse files
committed
fix multiple commit order issue
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent791212e commit67b0195

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/utils/commits.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function getCommits({
7373
commits[position]=[commit.hash];
7474
}else{
7575
// add to the list
76-
commits[position].push(commit.hash);
76+
commits[position].unshift(commit.hash);
7777
}
7878
positions.unshift(position);
7979
}else{
@@ -84,7 +84,7 @@ export async function getCommits({
8484
commits.INIT=[commit.hash];
8585
}else{
8686
// add to the list
87-
commits.INIT.push(commit.hash);
87+
commits.INIT.unshift(commit.hash);
8888
}
8989
positions.unshift("INIT");
9090
}
@@ -101,5 +101,7 @@ export async function getCommits({
101101
awaitrmdir(tmpDir,{recursive:true});
102102
}
103103

104+
console.log(commits);
105+
104106
returncommits;
105107
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp