Skip to content

Commit

Permalink
improvements to git-subrepo install script
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Feb 7, 2024
1 parent 12228d6 commit 438f27b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/src/meta/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ Only works for CI environments
async function ensureGitSubrepo(monorepoDir: string) {
if (process.env.CI) {
if (!gitSubrepoEnsured) {
// git-subrepo installation instructions:
// https://github.com/ingydotnet/git-subrepo?tab=readme-ov-file#installation
// Needs to be raw shell string
// `.` is like `source` but works in many types of shells
const gitSubrepoInstallScript = joinPaths(monorepoDir, 'scripts/git-subrepo/.rc')
const cmd = 'source ' + gitSubrepoInstallScript // needs to be raw shell string
const cmd = '. ' + gitSubrepoInstallScript

console.log()
console.log('Installing git-subrepo:')
Expand Down

0 comments on commit 438f27b

Please sign in to comment.