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
3049dfaf
Commit
3049dfaf
authored
Aug 18, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify return values
parent
df7f2b13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+4
-1
No files found.
lib/gitlab/git/repository.rb
View file @
3049dfaf
...
...
@@ -596,11 +596,13 @@ module Gitlab
# Delete the specified remote from this repository.
def
remote_delete
(
remote_name
)
rugged
.
remotes
.
delete
(
remote_name
)
nil
end
# Add a new remote to this repository.
Returns a Rugged::Remote object
# Add a new remote to this repository.
def
remote_add
(
remote_name
,
url
)
rugged
.
remotes
.
create
(
remote_name
,
url
)
nil
end
# Update the specified remote using the values in the +options+ hash
...
...
@@ -610,6 +612,7 @@ module Gitlab
def
remote_update
(
remote_name
,
url
:)
# TODO: Implement other remote options
rugged
.
remotes
.
set_url
(
remote_name
,
url
)
nil
end
AUTOCRLF_VALUES
=
{
...
...
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