Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
61be2ea6
Commit
61be2ea6
authored
Mar 10, 2011
by
Jens Ulferts
Committed by
Eric Davis
Mar 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#270
] bugfix: considering underscore a valid match in project identifier
parent
a80515fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
reposman.rb
extra/svn/reposman.rb
+5
-6
No files found.
extra/svn/reposman.rb
View file @
61be2ea6
...
...
@@ -7,7 +7,7 @@
# == Usage
#
# reposman [OPTIONS...] -s [DIR] -r [HOST]
#
#
# Examples:
# reposman --svn-dir=/var/svn --redmine-host=redmine.example.net --scm subversion
# reposman -s /var/git -r redmine.example.net -u http://svn.example.net --scm git
...
...
@@ -57,7 +57,7 @@
# -q, --quiet no log
#
# == References
#
#
# You can find more information on the redmine's wiki : http://www.redmine.org/wiki/redmine/HowTos
...
...
@@ -225,9 +225,9 @@ end
def
owner_name
(
file
)
mswin?
?
$svn_owner
:
Etc
.
getpwuid
(
File
.
stat
(
file
).
uid
).
name
Etc
.
getpwuid
(
File
.
stat
(
file
).
uid
).
name
end
def
mswin?
(
RUBY_PLATFORM
=~
/(:?mswin|mingw)/
)
||
(
RUBY_PLATFORM
==
'java'
&&
(
ENV
[
'OS'
]
||
ENV
[
'os'
])
=~
/windows/i
)
end
...
...
@@ -238,7 +238,7 @@ projects.each do |project|
if
project
.
identifier
.
empty?
log
(
"
\t
no identifier for project
#{
project
.
name
}
"
)
next
elsif
not
project
.
identifier
.
match
(
/^[a-z0-9\-]+$/
)
elsif
not
project
.
identifier
.
match
(
/^[a-z0-9\-
_
]+$/
)
log
(
"
\t
invalid identifier for project
#{
project
.
name
}
:
#{
project
.
identifier
}
"
);
next
;
end
...
...
@@ -309,4 +309,3 @@ projects.each do |project|
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
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