Brendan Abolivier преди 6 години
родител
ревизия
dce1c323d4
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 1
    1
      src/pusher/poller/poller.go
  2. 2
    1
      src/pusher/webhook/webhook.go

+ 1
- 1
src/pusher/poller/poller.go Целия файл

@@ -122,7 +122,7 @@ func poller(
122 122
 			// Filter out all files that are supposed to be ignored by the
123 123
 			// dashboard manager.
124 124
 			if err = common.FilterIgnored(&mergedContents, cfg); err != nil {
125
-				return
125
+				return err
126 126
 			}
127 127
 
128 128
 			// Push the contents of the files that were added or modified to the

+ 2
- 1
src/pusher/webhook/webhook.go Целия файл

@@ -31,7 +31,8 @@ func Setup(conf *config.Config, client *grafana.Client, delRemoved bool) (err er
31 31
 	grafanaClient = client
32 32
 	deleteRemoved = delRemoved
33 33
 
34
-	// Load the Git repository
34
+	// Load the Git repository.
35
+	var needsSync bool
35 36
 	repo, needsSync, err = git.NewRepository(cfg.Git)
36 37
 	if err != nil {
37 38
 		return err