Skip to content

Commit 3d6d1fd

Browse files
Fix typo in the clean git command 👾 (#150)
The @ was concatenated to the option. Glitch introduced by #147 Update the condition to check for existing upstream 🎣 #fix
1 parent 59c7981 commit 3d6d1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const cleanAndSyncRepo = ({branch = 'master', preCleanCommand = [], postCleanCom
3333
...preCleanCommand,
3434
'git stash',
3535
`git checkout ${branch}`,
36-
`if git rev-parse --abbrev-ref @--symbolic-full-name ${branch} ; then git pull; fi`, // pull only if upstream
36+
`if git rev-parse --abbrev-ref --symbolic-full-name @{u} ; then git pull; fi`, // pull only if upstream
3737
...postCleanCommand
3838
]);
3939

0 commit comments

Comments
 (0)