Reference drafts properly
This commit is contained in:
parent
62896cdea9
commit
b455fc73f1
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ func (s *server) serveSpec(w http.ResponseWriter, req *http.Request) {
|
||||||
log.Printf("Serving pr %s (%s)\n", branchName, sha)
|
log.Printf("Serving pr %s (%s)\n", branchName, sha)
|
||||||
} else if strings.ToLower(branchName) == "head" ||
|
} else if strings.ToLower(branchName) == "head" ||
|
||||||
branchName == "master" ||
|
branchName == "master" ||
|
||||||
strings.HasPrefix(branchName, "drafts/") {
|
strings.HasPrefix(branchName, "attic/drafts/") {
|
||||||
branchSHA, err := s.lookupBranch(branchName)
|
branchSHA, err := s.lookupBranch(branchName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writeError(w, 400, err)
|
writeError(w, 400, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue