Skip to content

Commit 3ba90d7

Browse files
authored
Merge pull request #14 from nfons/more-logging
updating logs
2 parents 17e6464 + 544c1e9 commit 3ba90d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deckhand.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ func sync() {
183183

184184
// initialize the remote git repo by pulling it. We will need to run this step first every time deck hand is init.
185185
func gitPullMaster() {
186+
log.Debug("Pulling From master repo")
186187
r, err := git.PlainOpen(directory)
187188
CheckIfError(err)
188189
worktree, err := r.Worktree()
@@ -192,12 +193,15 @@ func gitPullMaster() {
192193
pullerr := worktree.Pull(&git.PullOptions{
193194
RemoteName: "origin",
194195
Auth: auth,
196+
Progress: os.Stdout,
195197
})
196198

197199
if pullerr != nil {
198200
errstr := pullerr.Error()
199201
if errstr != "already up-to-date" {
200202
log.Info(errstr)
203+
} else {
204+
log.Info("Pull Already up-to-date")
201205
}
202206
}
203207
}

0 commit comments

Comments
 (0)