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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e9015dfb
Commit
e9015dfb
authored
Aug 26, 2014
by
uran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mask password in import URL while importing.
parent
23d4fcbd
Changes
2
Hide 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 @
e9015dfb
...
...
@@ -261,4 +261,10 @@ module ProjectsHelper
project_blob_path
(
project
,
tree_join
(
project
.
default_branch
,
project
.
repository
.
contribution_guide
.
name
))
end
end
def
hidden_pass_url
(
original_url
)
result
=
URI
(
original_url
)
result
.
password
=
'*****'
if
result
.
password
.
present?
result
end
end
app/views/projects/import.html.haml
View file @
e9015dfb
...
...
@@ -4,7 +4,7 @@
%h2
%i
.icon-spinner.icon-spin
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.
:javascript
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