Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
269c1ede82b2
Commit
269c1ede
authored
Oct 18, 2011
by
gitlabhq
Browse files
few fixes
parent
8ab1562f5cf0
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
269c1ede
...
...
@@ -29,7 +29,7 @@
:uniqueness
=>
true
,
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-]*$/
,
:message
=>
"only letters, digits & '_' '-' allowed"
},
:length
=>
{
:within
=>
3
..
16
}
:length
=>
{
:within
=>
3
..
255
}
validates
:owner
,
:presence
=>
true
...
...
app/views/projects/_form.html.haml
View file @
269c1ede
...
...
@@ -24,7 +24,7 @@
%td
.left
=
f
.
label
:code
%cite
.right
http://yourserver/
%td
=
f
.
text_field
:code
,
:placeholder
=>
"example
(3..12 symbols only)
"
%td
=
f
.
text_field
:code
,
:placeholder
=>
"example"
.field
=
f
.
label
:description
%br
/
...
...
lib/gitosis.rb
View file @
269c1ede
...
...
@@ -27,13 +27,14 @@
def
configure
status
=
Timeout
::
timeout
(
20
)
do
File
.
open
(
File
.
join
(
Dir
.
tmpdir
,
"gitlabhq-gitosis.lock"
),
"w+"
)
do
|
f
|
f
.
flock
(
File
::
LOCK_EX
)
pull
yield
(
self
)
push
f
.
flock
(
File
::
LOCK_UN
)
begin
f
.
flock
(
File
::
LOCK_EX
)
pull
yield
(
self
)
push
ensure
f
.
flock
(
File
::
LOCK_UN
)
end
end
end
rescue
Exception
=>
ex
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment