Add functionality to create a directory with an empty .gitkeep file
This is in preparation to support gitlab-org/gitlab-ce#2557.
Also fixes an issue where file modes were overwritten after a commit: gitlab-org/gitlab-ce#2799.
Supports capability to reject updates of existing files: https://github.com/gitlabhq/gitlabhq/issues/8253
Merge request reports
Activity
Added 3 commits:
- a7453a31...57ec2b71 - 2 commits from branch
gitlab-org:master
- 14b0479f - Add functionality to create a directory with an empty .gitkeep file
- a7453a31...57ec2b71 - 2 commits from branch
@DouweM, would you mind reviewing this?
@stanhu Great work, a work of art indeed!
813 # options should contain next structure: 814 # author: { 815 # email: 'user@example.com', 816 # name: 'Test User', 817 # time: Time.now 818 # }, 819 # committer: { 820 # email: 'user@example.com', 821 # name: 'Test User', 822 # time: Time.now 823 # }, 824 # commit: { 825 # message: 'Wow such commit', 826 # branch: 'master' 827 # } 828 def mkdir(path, options = {}) Added 5 commits:
- 4048268e...56471f8f - 3 commits from branch
gitlab-org:master
- 29236fa2 - Add functionality to create a directory with an empty .gitkeep file
- a83825c5 - Handle relative paths
- 4048268e...56471f8f - 3 commits from branch
Added 13 commits:
- b43ba63d...dfc0fc2b - 3 commits from branch
gitlab-org:master
- fecece72 - Add functionality to create a directory with an empty .gitkeep file
- 510d120e - Handle relative paths
- ed74facb - Clean up spec
- bb4da147 - Simplify mkdir and create all required directories
- 100c278e - Refactor tests
- cd569714 - Revise test for invalid filenames
- cc61f4fa - Don't overwrite existing files
- 8a911965 - Fix missing space
- 51b65053 - Fix bug where tree_entry could return a false entry
- 3c164e33 - Raise exceptions upon failure
Toggle commit list- b43ba63d...dfc0fc2b - 3 commits from branch
@DouweM, ok I've updated the code to reuse and improve the existing
Blob::commit
code. Please review.Added 1 commit:
- ad5cf444 - Add functionality to create a directory with an empty .gitkeep file
@stanhu Awesome :) Ready to merge or do you want to tweak some more? :P
Edited by Douwe Maan@DouweM, ready to merge! Thanks.
mentioned in commit 95b35fac
@stanhu Merged and released 7.2.18.
Thanks, @DouweM!