diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 16:41:45 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 16:41:45 +0300 |
commit | 412db1874fbf2847ad9d84e9d2344d4c4d4b9fef (patch) | |
tree | 24b39366555209a0db724d9b4eb49fff4fe2e620 /app/models/repository.rb | |
parent | a85eed6446fa0b4b899a71cb9a3cb5e011a41c3a (diff) |
Fix some tests and report the error message
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 02f7f70ecb0..c032baa5d2c 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1021,10 +1021,10 @@ class Repository def fetch_ref(source_path, source_ref, target_ref) args = %W(fetch --no-tags -f #{source_path} #{source_ref}:#{target_ref}) - run_git(args) + message, status = run_git(args) # Make sure ref was created, and raise Rugged::ReferenceError when not - raise Rugged::ReferenceError unless ref_exists?(target_ref) + raise Rugged::ReferenceError, message unless ref_exists?(target_ref) end def create_ref(ref, ref_path) |