Skip to content

Commit 741709f

Browse files
committed
Corrects the #default branch behavior to use the remote default
1 parent cbbcdc5 commit 741709f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
linear-cli (0.5.1)
4+
linear-cli (0.5.2)
55
base64 (~> 0.2)
66
dry-cli (~> 1.0)
77
dry-cli-completion (~> 1.0)

lib/linear/cli/sub_commands.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def git
107107
end
108108

109109
def default_branch
110-
@default_branch ||= Git.default_branch git.repo.path
110+
@default_branch ||= Git.default_branch git.remote.url
111111
end
112112
end
113113
end

0 commit comments

Comments
 (0)