Skip to content

Commit 69ad1ce

Browse files
Updating clone --b to clone --branch (just to make it a little more verbose)
1 parent b05a8d2 commit 69ad1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def clone(repository, name, opts = {})
5959
clone_dir = opts[:path] ? File.join(@path, name) : name
6060

6161
arr_opts = []
62-
arr_opts << "-b" << opts[:branch] if opts[:branch]
62+
arr_opts << "--branch" << opts[:branch] if opts[:branch]
6363
arr_opts << "--bare" if opts[:bare]
6464
arr_opts << "--recursive" if opts[:recursive]
6565
arr_opts << "-o" << opts[:remote] if opts[:remote]

0 commit comments

Comments
 (0)