Skip to content

Commit

Permalink
attempt to create branch in test-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed May 5, 2022
1 parent ee96ab2 commit 0df5c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gogs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ defmodule Gogs do
"""
@spec local_branch_create(String.t(), String.t()) :: {:ok, map} | {:error, any}
def local_branch_create(repo_name, _branch_name \\ "draft") do
inject_git().checkout(local_git_repo(repo_name), ~w(-b draft))
# inject_git().checkout(local_git_repo(repo_name), ~w(-b draft))
Git.checkout(local_git_repo(repo_name), ~w(-b draft))
end

@spec local_file_write_text(String.t(), String.t(), String.t()) :: :ok | {:error, any}
Expand Down

0 comments on commit 0df5c0d

Please sign in to comment.