commit | 045b67a782acf947860d14b3c07aa8401d9938fd | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Fri Nov 15 20:59:21 2019 -0800 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Fri Nov 15 20:59:21 2019 -0800 |
tree | bb5bc30d0a7506f9f6f20b8be35e4f088dbda0d9 | |
parent | 1e17b1187693b1818c7af5a2201b37ba2c88a34b [diff] |
gerrit: don't fetch content for deleted files Change-Id: I9275af0fe798e02f056ba70bd677f7178996d58e
diff --git a/gerrit/server.go b/gerrit/server.go index e6e5409..e23200b 100644 --- a/gerrit/server.go +++ b/gerrit/server.go
@@ -151,7 +151,10 @@ return nil, err } - for name := range files { + for name, file := range files { + if file.Status == "D" { + continue + } c, err := g.GetContent(changeID, revID, name) if err != nil { return nil, err