Skip to content

Commit ad09682

Browse files
committed
fix missing dir
1 parent eca515a commit ad09682

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.6.2 - 30 May
4+
- fix checkout missing dir
5+
36
## 0.6.1 - 30 May
47
- minimal checkout command
58
- some securiy updates

src/cmd_checkout.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ func cmdCheckout() *cli.Command {
2020
},
2121
Action: func(c *cli.Context) error {
2222

23-
directory := c.Args().Get(1)
23+
directory := c.Args().Get(0)
2424
ref := c.String("ref")
25+
Info("git checkout in dir %s", directory)
2526

2627
r, err := git.PlainOpen(directory)
2728
CheckIfError(err)

0 commit comments

Comments
 (0)