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
9d59616b
Commit
9d59616b
authored
Jul 18, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix URL for deleting branches
parent
930ca2d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/bitbucket_server/connection.rb
lib/bitbucket_server/connection.rb
+1
-1
spec/lib/bitbucket_server/connection_spec.rb
spec/lib/bitbucket_server/connection_spec.rb
+1
-1
No files found.
lib/bitbucket_server/connection.rb
View file @
9d59616b
...
...
@@ -88,7 +88,7 @@ module BitbucketServer
def
delete_url
(
resource
,
path
)
if
resource
==
:branches
"
#{
base_uri
}
/branch-utils/
#{
api_version
}#{
path
}
"
"
#{
base_uri
}
/
rest/
branch-utils/
#{
api_version
}#{
path
}
"
else
build_url
(
path
)
end
...
...
spec/lib/bitbucket_server/connection_spec.rb
View file @
9d59616b
...
...
@@ -39,7 +39,7 @@ describe BitbucketServer::Connection do
describe
'#delete'
do
context
'branch API'
do
let
(
:branch_path
)
{
'/projects/foo/repos/bar/branches'
}
let
(
:branch_url
)
{
'https://test:7990/branch-utils/1.0/projects/foo/repos/bar/branches'
}
let
(
:branch_url
)
{
'https://test:7990/
rest/
branch-utils/1.0/projects/foo/repos/bar/branches'
}
let
(
:path
)
{
}
it
'returns JSON body'
do
...
...
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