Skip to content

Commit

Permalink
fix: avoid using upstream remote name for forked repos
Browse files Browse the repository at this point in the history
  • Loading branch information
hashtagchris committed Jul 23, 2024
1 parent baa6021 commit 5ea4245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gh/workers/_common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const clone = ({ argv, item }) => [
mkdirp({ argv, item }),
[
'gh',
['repo', 'clone', `${item.owner}/${item.name}`],
// template-oss will use upstream over origin, so we supply an alternate remote name for forked repos
['repo', 'clone', `${item.owner}/${item.name}`, '-u', 'parent'],
{
cwd: item.ownerDir,
status: ({ status, output }) =>
Expand Down

0 comments on commit 5ea4245

Please sign in to comment.