Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
nexedi
gitlab-shell
Commits
d0dc169b
Commit
d0dc169b
authored
Feb 06, 2018
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds changelog item and bumps the version
parent
51ea7adb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
46 deletions
+8
-46
CHANGELOG
CHANGELOG
+3
-0
VERSION
VERSION
+1
-1
spec/gitlab_post_receive_spec.rb
spec/gitlab_post_receive_spec.rb
+4
-45
No files found.
CHANGELOG
View file @
d0dc169b
v6.0.3
- Print new project information in post-receive
v6.0.2
- Use grpc-go 1.9.1 (!184)
- Update gitaly-proto and gitaly libs (!185)
...
...
VERSION
View file @
d0dc169b
6.0.
2
6.0.
3
spec/gitlab_post_receive_spec.rb
View file @
d0dc169b
...
...
@@ -62,16 +62,7 @@ describe GitlabPostReceive do
end
context
'when redirected message available'
do
let
(
:message
)
do
<<~
MSG
Project 'foo/bar' was moved to 'foo/baz'.
Please update your Git remote:
git remote set-url origin http://localhost:3000/foo/baz.git
MSG
end
let
(
:message
)
{
"This is a redirected message"
}
let
(
:response
)
do
{
'reference_counter_decreased'
=>
true
,
...
...
@@ -86,20 +77,7 @@ describe GitlabPostReceive do
end
context
'when project created message is available'
do
let
(
:message
)
do
<<~
MSG
The private project foo/bar was successfully created.
To configure the remote, run:
git remote add origin http://localhost:3000/foo/bar.git
To view the project, visit:
http://localhost:3000/foo/bar
MSG
end
let
(
:message
)
{
"This is a created project message"
}
let
(
:response
)
do
{
'reference_counter_decreased'
=>
true
,
...
...
@@ -163,29 +141,10 @@ describe GitlabPostReceive do
end
def
assert_redirected_message_printed
(
gitlab_post_receive
)
message
=
<<~
MSG
Project 'foo/bar' was moved to 'foo/baz'.
Please update your Git remote:
git remote set-url origin http://localhost:3000/foo/baz.git
MSG
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
message
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
"This is a redirected message"
)
end
def
assert_project_created_message_printed
(
gitlab_post_receive
)
message
=
<<~
MSG
The private project foo/bar was successfully created.
To configure the remote, run:
git remote add origin http://localhost:3000/foo/bar.git
To view the project, visit:
http://localhost:3000/foo/bar
MSG
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
message
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
"This is a created project message"
)
end
end
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