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
1438285d
Commit
1438285d
authored
Aug 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7601 from yglukhov/hide_pass
Mask password in import URL while importing.
parents
22a7fcab
e9015dfb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+6
-0
app/views/projects/import.html.haml
app/views/projects/import.html.haml
+1
-1
No files found.
app/helpers/projects_helper.rb
View file @
1438285d
...
@@ -261,4 +261,10 @@ module ProjectsHelper
...
@@ -261,4 +261,10 @@ module ProjectsHelper
project_blob_path
(
project
,
tree_join
(
project
.
default_branch
,
project
.
repository
.
contribution_guide
.
name
))
project_blob_path
(
project
,
tree_join
(
project
.
default_branch
,
project
.
repository
.
contribution_guide
.
name
))
end
end
end
end
def
hidden_pass_url
(
original_url
)
result
=
URI
(
original_url
)
result
.
password
=
'*****'
if
result
.
password
.
present?
result
end
end
end
app/views/projects/import.html.haml
View file @
1438285d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
%h2
%h2
%i
.icon-spinner.icon-spin
%i
.icon-spinner.icon-spin
Import in progress.
Import in progress.
%p
.monospace
git clone --bare
#{
@project
.
import_url
}
%p
.monospace
git clone --bare
#{
hidden_pass_url
(
@project
.
import_url
)
}
%p
Please wait while we import the repository for you. Refresh at will.
%p
Please wait while we import the repository for you. Refresh at will.
:javascript
:javascript
new
ProjectImport
();
new
ProjectImport
();
...
...
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