defer clean
This commit is contained in:
parent
3676190143
commit
de4a9701b3
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -178,6 +178,8 @@ func main() {
|
||||||
log.Fatalf("Failed to open git worktree %s", err)
|
log.Fatalf("Failed to open git worktree %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer tree.Clean(&git.CleanOptions{Dir: true})
|
||||||
|
|
||||||
filesystemRoot := tree.Filesystem.Root()
|
filesystemRoot := tree.Filesystem.Root()
|
||||||
scanner := bufio.NewScanner(os.Stdin)
|
scanner := bufio.NewScanner(os.Stdin)
|
||||||
|
|
||||||
|
@ -229,6 +231,4 @@ func main() {
|
||||||
log.Println("Pushed changes to remote")
|
log.Println("Pushed changes to remote")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tree.Clean(&git.CleanOptions{Dir: true})
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue