Re:GitLab, open source github clone, reaches 3.0
by yakshay on Tuesday October 23, 2012 @08:18AM
(#4687682)
Does the web editor support editing files in a bare repo ?
[ Parent
| on HN ]
Re:GitLab, open source github clone, reaches 3.0
by sytse on Tuesday October 23, 2012 @10:59AM
(#4688389)
I assume you mean an empty repo (without any files) and not a bare repo? A bare repo has no working copy and is pushable, see http://stackoverflow.com/questions/2199897/how-to-convert-a-...
I don't think the editor allows you to create new files.
Re:GitLab, open source github clone, reaches 3.0
by davvid on Wednesday October 24, 2012 @10:51PM
(#4696138)
Does the web editor support editing files in a bare repo ?
Yes.
The trick is that lib/gitlab/file_editor.rb checks the file out, modifies it, commits it, and removes it. I read this from one of the comments in the original post.