diff options
author | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-13 10:31:06 +0100 |
---|---|---|
committer | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-13 10:31:06 +0100 |
commit | 375caeefcfb2672c8fdce18cf6f35372729d0c43 (patch) | |
tree | 74b90868c88f9641a0975271f8a5620709f90eb9 /lib/api/projects.rb | |
parent | ae40e855efc393d752f290ed8eda67961874acf5 (diff) | |
parent | b9f8b4019073fe60515bda8947d9040b4b73ea38 (diff) | |
download | gitlab-ce-375caeefcfb2672c8fdce18cf6f35372729d0c43.tar.gz |
Merge branch 'master' into fixes/api
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 293353ab286..f8c9701ecaf 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -265,6 +265,7 @@ module Gitlab # GET /projects/:id/repository/branches/:branch get ":id/repository/branches/:branch" do @branch = user_project.repo.heads.find { |item| item.name == params[:branch] } + not_found!("Branch does not exist") if @branch.nil? present @branch, with: Entities::RepoObject, project: user_project end |