Skip to content

Commit

Permalink
fix: allow force push "first" file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Oct 4, 2024
1 parent 43bff90 commit 90a6186
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GitHub/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ export default class Publisher {
repo.frontmatter
);
if (!isShared(frontmatter, this.settings, file, repo.repository)) return false;
if (!(await shareFiles.wasEditedSinceLastSync(file, repo.repository, filePath))) {
console.debug(file.name, fileHistory.length);
if (
!(await shareFiles.wasEditedSinceLastSync(file, repo.repository, filePath)) && fileHistory.length > 0
) {
const msg = i18next.t("publish.upToDate", {
file: file.name,
repo: `${repo.repository?.user ?? this.settings.github.user}/${
Expand Down

0 comments on commit 90a6186

Please sign in to comment.