Skip to content

Commit 072545f

Browse files
committed
fix(cmd): fixed sync command bug
1 parent de120be commit 072545f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var rootCmd = &cobra.Command{
1717
// Uncomment the following line if your bare application
1818
// has an action associated with it:
1919
// Run: func(cmd *cobra.Command, args []string) { },
20-
Version: "1.0.4",
20+
Version: "1.0.5",
2121
}
2222

2323
// Execute adds all child commands to the root command and sets flags appropriately.

cmd/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var syncCmd = &cobra.Command{
2626
color.Red("Is it a git repo?")
2727
return
2828
}
29-
toBranch := string(data)
29+
toBranch := string(data[:len(data)-1])
3030
if len(args) >= 2 {
3131
args = append(args, args[0])
3232
toBranch = args[1]

0 commit comments

Comments
 (0)