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
ba15ee49
Commit
ba15ee49
authored
Jul 26, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spell 'not found' like GitLab does
parent
c5e3517a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.go
main.go
+3
-3
No files found.
main.go
View file @
ba15ee49
...
...
@@ -106,7 +106,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) {
// Validate the path to the Git repository
found_path
:=
path_match
[
1
]
if
!
valid_path
(
found_path
)
{
http
.
Error
(
w
,
"Not
f
ound"
,
404
)
http
.
Error
(
w
,
"Not
F
ound"
,
404
)
return
}
...
...
@@ -114,7 +114,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) {
return
}
}
http
.
Error
(
w
,
"Not
f
ound"
,
404
)
http
.
Error
(
w
,
"Not
F
ound"
,
404
)
return
}
...
...
@@ -183,7 +183,7 @@ func handle_get_info_refs(user string, _ string, path string, w http.ResponseWri
}
case
""
:
// The 'dumb' Git HTTP protocol is not supported
http
.
Error
(
w
,
"Not
f
ound"
,
404
)
http
.
Error
(
w
,
"Not
F
ound"
,
404
)
return
}
}
...
...
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