Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
022a0c2f
Commit
022a0c2f
authored
Jul 05, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop errors
parent
a78e36ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/import/bitbucket_server_controller.rb
app/controllers/import/bitbucket_server_controller.rb
+1
-1
lib/bitbucket_server/representation/repo.rb
lib/bitbucket_server/representation/repo.rb
+1
-1
No files found.
app/controllers/import/bitbucket_server_controller.rb
View file @
022a0c2f
...
...
@@ -11,7 +11,7 @@ class Import::BitbucketServerController < Import::BaseController
# Repository names are limited to 128 characters. They must start with a
# letter or number and may contain spaces, hyphens, underscores, and periods.
# (https://community.atlassian.com/t5/Answers-Developer-Questions/stash-repository-names/qaq-p/499054)
VALID_BITBUCKET_CHARS
=
%r(
\A
[a-zA-z0-9
\-
_
\.\s
]*$)
VALID_BITBUCKET_CHARS
=
/\A[a-zA-z0-9\-_\.\s]*$/
SERVER_ERRORS
=
[
SocketError
,
OpenSSL
::
SSL
::
SSLError
,
...
...
lib/bitbucket_server/representation/repo.rb
View file @
022a0c2f
...
...
@@ -18,7 +18,7 @@ module BitbucketServer
end
def
browse_url
link
=
raw
.
dig
(
'project'
,
'links'
,
'self'
).
first
.
fetch
(
'href'
)
raw
.
dig
(
'project'
,
'links'
,
'self'
).
first
.
fetch
(
'href'
)
end
def
clone_url
...
...
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