We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dafa59d commit 026adc2Copy full SHA for 026adc2
vcs.go
@@ -300,17 +300,16 @@ var DarcsBackend = &VCSBackend{
300
// PijulBackend is the VCSBackend for pijul
301
var PijulBackend = &VCSBackend{
302
Clone: func(vg *vcsGetOption) error {
303
- if vg.branch != "" {
304
- return errors.New("pijul does not support branch")
305
- }
306
-
307
dir, _ := filepath.Split(vg.dir)
308
err := os.MkdirAll(dir, 0755)
309
if err != nil {
310
return err
311
}
312
313
args := []string{"clone"}
+ if vg.branch != "" {
+ args = append(args, "--channel", vg.branch)
+ }
314
args = append(args, vg.url.String(), vg.dir)
315
316
return run(vg.silent)("pijul", args...)
0 commit comments