mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
dev/sg: fix dev-private cloning (#37798)
This commit is contained in:
parent
0a3484f837
commit
7f8397cca4
@ -94,7 +94,18 @@ NOTE: You can ignore this if you're not a Sourcegraph teammate.`,
|
||||
}
|
||||
return errors.New("could not find dev-private repository either in current directory or one above")
|
||||
},
|
||||
Fix: cmdFix(`git clone git@github.com:sourcegraph/dev-private.git`),
|
||||
Fix: func(ctx context.Context, cio check.IO, args CheckArgs) error {
|
||||
rootDir, err := root.RepositoryRoot()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "sourcegraph/sourcegraph should be cloned first")
|
||||
}
|
||||
|
||||
return run.Cmd(ctx, `git clone git@github.com:sourcegraph/dev-private.git`).
|
||||
// Clone to parent
|
||||
Dir(filepath.Join(rootDir, "..")).
|
||||
Run().
|
||||
StreamLines(cio.Verbose)
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user