diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-03 16:39:12 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-04 10:54:31 +0300 |
commit | 901c994b7a4481437f8fe91583d2ed3f19e4775e (patch) | |
tree | faf1598797c6bf1eb27d596afbb76350de25ecf4 /app/models/repository.rb | |
parent | 8fd91794382899e9e352af493a699198d7867f96 (diff) |
deployment refs in own folder, new method for creating refs
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 51557228ab9..eb574555df6 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -997,6 +997,10 @@ class Repository Gitlab::Popen.popen(args, path_to_repo) end + def create_ref(ref, ref_path) + fetch_ref(path_to_repo, ref, ref_path) + end + def update_branch_with_hooks(current_user, branch) update_autocrlf_option |