Skip to content

Commit

Permalink
fix: fixed repo sync logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amochkin committed May 1, 2023
1 parent c1bd38e commit c8a2d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Sync {
gitCommand.push(repoName);
cwd = reposDir;
} else {
gitCommand.push(`fetch`);
gitCommand.push(`reset --hard HEAD; git pull`);
cwd = destinationRepoPath;
}

Expand Down
2 changes: 1 addition & 1 deletion test/Sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('doSync', () => {
{
name: 'repoNameExisting',
code: 0,
message: 'git fetch',
message: 'git reset --hard HEAD; git pull',
status: 'SUCCESS',
},
]);
Expand Down

0 comments on commit c8a2d6b

Please sign in to comment.