vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 63 forks source link

Support auto create destination directory for `magit-clone` #281

Closed stardiviner closed 6 years ago

stardiviner commented 6 years ago

When I use command magit-clone, It prompt a destination directory, when it does not exist, it will report error, I don't want to create this directory manually, hope magithub can create it automatically.

vermiculus commented 6 years ago

If you want an enhancement to magit-clone, please write a feature request to that repository. Otherwise I'm not sure what you're asking; I believe magithub-clone already created the directory if it does not exist. Can you expand on what you want?

stardiviner commented 6 years ago

Oh, sorry, I did use magithub-clone. Mistyping. Here is the error backtrace:

Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/home/stardiviner/Code/Emacs/kk")
  call-process("git" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent")
  apply(call-process "git" nil (t nil) nil ("--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent"))
  process-file("git" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent")
  apply(process-file ("git" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent"))
  magit-process-file("git" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent")
  apply(magit-process-file "git" nil (t nil) nil ("--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "config" "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent"))
  magit-git-insert("config" nil "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent")
  apply(magit-git-insert ("config" nil "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent"))
  magit-git-items("config" nil "-z" "--get-all" "magithub.confirm.cloneForkSetUpstreamToParent")
  magit-get-all("magithub.confirm.cloneForkSetUpstreamToParent")
  apply(magit-get-all "magithub.confirm.cloneForkSetUpstreamToParent")
  magit-get("magithub.confirm.cloneForkSetUpstreamToParent")
  magithub-settings--value-or("magithub.confirm.cloneForkSetUpstreamToParent" "short")
  magithub--confirm(clone-fork-set-upstream-to-parent ("nikclayton/ob-sql-mode") t)
  magithub-confirm-no-error(clone-fork-set-upstream-to-parent "nikclayton/ob-sql-mode")
  magithub-clone(((id . 120882277) (name . "ob-sql-mode") (full_name . "stardiviner/ob-sql-mode") (owner (login . "stardiviner") (id . 378699) (avatar_url . "https://avatars3.githubusercontent.com/u/378699?v=4") (gravatar_id . "") (url . "https://api.github.com/users/stardiviner") (html_url . "https://github.com/stardiviner") (followers_url . "https://api.github.com/users/stardiviner/followers") (following_url . "https://api.github.com/users/stardiviner/following{/other_user}") (gists_url . "https://api.github.com/users/stardiviner/gists{/gist_id}") (starred_url . "https://api.github.com/users/stardiviner/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/stardiviner/subscriptions") (organizations_url . "https://api.github.com/users/stardiviner/orgs") (repos_url . "https://api.github.com/users/stardiviner/repos") (events_url . "https://api.github.com/users/stardiviner/events{/privacy}") (received_events_url . "https://api.github.com/users/stardiviner/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/stardiviner/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork . t) (url . "https://api.github.com/repos/stardiviner/ob-sql-mode") (forks_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/deployments") (created_at . "2018-02-09T08:59:56Z") (updated_at . "2018-02-09T08:59:57Z") (pushed_at . "2018-02-09T09:32:19Z") (git_url . "git://github.com/stardiviner/ob-sql-mode.git") (ssh_url . "git@github.com:stardiviner/ob-sql-mode.git") (clone_url . "https://github.com/stardiviner/ob-sql-mode.git") (svn_url . "https://github.com/stardiviner/ob-sql-mode") (homepage) (size . 20) (stargazers_count . 0) (watchers_count . 0) (language . "Emacs Lisp") (has_issues) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 0) (mirror_url) (archived) (open_issues_count . 0) (license) (forks . 0) (open_issues . 0) (watchers . 0) (default_branch . "master") (permissions (admin . t) (push . t) (pull . t)) (allow_squash_merge . t) (allow_merge_commit . t) (allow_rebase_merge . t) (parent (id . 78032257) (name . "ob-sql-mode") (full_name . "nikclayton/ob-sql-mode") (owner (login . "nikclayton") (id . 773100) (avatar_url . "https://avatars0.githubusercontent.com/u/773100?v=4") (gravatar_id . "") (url . "https://api.github.com/users/nikclayton") (html_url . "https://github.com/nikclayton") (followers_url . "https://api.github.com/users/nikclayton/followers") (following_url . "https://api.github.com/users/nikclayton/following{/other_user}") (gists_url . "https://api.github.com/users/nikclayton/gists{/gist_id}") (starred_url . "https://api.github.com/users/nikclayton/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/nikclayton/subscriptions") (organizations_url . "https://api.github.com/users/nikclayton/orgs") (repos_url . "https://api.github.com/users/nikclayton/repos") (events_url . "https://api.github.com/users/nikclayton/events{/privacy}") (received_events_url . "https://api.github.com/users/nikclayton/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/nikclayton/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork) (url . "https://api.github.com/repos/nikclayton/ob-sql-mode") (forks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/deployments") (created_at . "2017-01-04T16:22:43Z") (updated_at . "2018-02-06T15:22:10Z") (pushed_at . "2018-02-09T09:33:14Z") (git_url . "git://github.com/nikclayton/ob-sql-mode.git") (ssh_url . "git@github.com:nikclayton/ob-sql-mode.git") (clone_url . "https://github.com/nikclayton/ob-sql-mode.git") (svn_url . "https://github.com/nikclayton/ob-sql-mode") (homepage) (size . 19) (stargazers_count . 7) (watchers_count . 7) (language . "Emacs Lisp") (has_issues . t) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 5) (mirror_url) (archived) (open_issues_count . 2) (license (key . "gpl-3.0") (name . "GNU General Public License v3.0") (spdx_id . "GPL-3.0") (url . "https://api.github.com/licenses/gpl-3.0")) (forks . 5) (open_issues . 2) (watchers . 7) (default_branch . "master")) (source (id . 78032257) (name . "ob-sql-mode") (full_name . "nikclayton/ob-sql-mode") (owner (login . "nikclayton") (id . 773100) (avatar_url . "https://avatars0.githubusercontent.com/u/773100?v=4") (gravatar_id . "") (url . "https://api.github.com/users/nikclayton") (html_url . "https://github.com/nikclayton") (followers_url . "https://api.github.com/users/nikclayton/followers") (following_url . "https://api.github.com/users/nikclayton/following{/other_user}") (gists_url . "https://api.github.com/users/nikclayton/gists{/gist_id}") (starred_url . "https://api.github.com/users/nikclayton/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/nikclayton/subscriptions") (organizations_url . "https://api.github.com/users/nikclayton/orgs") (repos_url . "https://api.github.com/users/nikclayton/repos") (events_url . "https://api.github.com/users/nikclayton/events{/privacy}") (received_events_url . "https://api.github.com/users/nikclayton/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/nikclayton/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork) (url . "https://api.github.com/repos/nikclayton/ob-sql-mode") (forks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/deployments") (created_at . "2017-01-04T16:22:43Z") (updated_at . "2018-02-06T15:22:10Z") (pushed_at . "2018-02-09T09:33:14Z") (git_url . "git://github.com/nikclayton/ob-sql-mode.git") (ssh_url . "git@github.com:nikclayton/ob-sql-mode.git") (clone_url . "https://github.com/nikclayton/ob-sql-mode.git") (svn_url . "https://github.com/nikclayton/ob-sql-mode") (homepage) (size . 19) (stargazers_count . 7) (watchers_count . 7) (language . "Emacs Lisp") (has_issues . t) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 5) (mirror_url) (archived) (open_issues_count . 2) (license (key . "gpl-3.0") (name . "GNU General Public License v3.0") (spdx_id . "GPL-3.0") (url . "https://api.github.com/licenses/gpl-3.0")) (forks . 5) (open_issues . 2) (watchers . 7) (default_branch . "master")) (network_count . 5) (subscribers_count . 1)) "/home/stardiviner/Code/Emacs/kk")
  funcall-interactively(magithub-clone ((id . 120882277) (name . "ob-sql-mode") (full_name . "stardiviner/ob-sql-mode") (owner (login . "stardiviner") (id . 378699) (avatar_url . "https://avatars3.githubusercontent.com/u/378699?v=4") (gravatar_id . "") (url . "https://api.github.com/users/stardiviner") (html_url . "https://github.com/stardiviner") (followers_url . "https://api.github.com/users/stardiviner/followers") (following_url . "https://api.github.com/users/stardiviner/following{/other_user}") (gists_url . "https://api.github.com/users/stardiviner/gists{/gist_id}") (starred_url . "https://api.github.com/users/stardiviner/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/stardiviner/subscriptions") (organizations_url . "https://api.github.com/users/stardiviner/orgs") (repos_url . "https://api.github.com/users/stardiviner/repos") (events_url . "https://api.github.com/users/stardiviner/events{/privacy}") (received_events_url . "https://api.github.com/users/stardiviner/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/stardiviner/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork . t) (url . "https://api.github.com/repos/stardiviner/ob-sql-mode") (forks_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/stardiviner/ob-sql-mode/deployments") (created_at . "2018-02-09T08:59:56Z") (updated_at . "2018-02-09T08:59:57Z") (pushed_at . "2018-02-09T09:32:19Z") (git_url . "git://github.com/stardiviner/ob-sql-mode.git") (ssh_url . "git@github.com:stardiviner/ob-sql-mode.git") (clone_url . "https://github.com/stardiviner/ob-sql-mode.git") (svn_url . "https://github.com/stardiviner/ob-sql-mode") (homepage) (size . 20) (stargazers_count . 0) (watchers_count . 0) (language . "Emacs Lisp") (has_issues) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 0) (mirror_url) (archived) (open_issues_count . 0) (license) (forks . 0) (open_issues . 0) (watchers . 0) (default_branch . "master") (permissions (admin . t) (push . t) (pull . t)) (allow_squash_merge . t) (allow_merge_commit . t) (allow_rebase_merge . t) (parent (id . 78032257) (name . "ob-sql-mode") (full_name . "nikclayton/ob-sql-mode") (owner (login . "nikclayton") (id . 773100) (avatar_url . "https://avatars0.githubusercontent.com/u/773100?v=4") (gravatar_id . "") (url . "https://api.github.com/users/nikclayton") (html_url . "https://github.com/nikclayton") (followers_url . "https://api.github.com/users/nikclayton/followers") (following_url . "https://api.github.com/users/nikclayton/following{/other_user}") (gists_url . "https://api.github.com/users/nikclayton/gists{/gist_id}") (starred_url . "https://api.github.com/users/nikclayton/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/nikclayton/subscriptions") (organizations_url . "https://api.github.com/users/nikclayton/orgs") (repos_url . "https://api.github.com/users/nikclayton/repos") (events_url . "https://api.github.com/users/nikclayton/events{/privacy}") (received_events_url . "https://api.github.com/users/nikclayton/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/nikclayton/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork) (url . "https://api.github.com/repos/nikclayton/ob-sql-mode") (forks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/deployments") (created_at . "2017-01-04T16:22:43Z") (updated_at . "2018-02-06T15:22:10Z") (pushed_at . "2018-02-09T09:33:14Z") (git_url . "git://github.com/nikclayton/ob-sql-mode.git") (ssh_url . "git@github.com:nikclayton/ob-sql-mode.git") (clone_url . "https://github.com/nikclayton/ob-sql-mode.git") (svn_url . "https://github.com/nikclayton/ob-sql-mode") (homepage) (size . 19) (stargazers_count . 7) (watchers_count . 7) (language . "Emacs Lisp") (has_issues . t) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 5) (mirror_url) (archived) (open_issues_count . 2) (license (key . "gpl-3.0") (name . "GNU General Public License v3.0") (spdx_id . "GPL-3.0") (url . "https://api.github.com/licenses/gpl-3.0")) (forks . 5) (open_issues . 2) (watchers . 7) (default_branch . "master")) (source (id . 78032257) (name . "ob-sql-mode") (full_name . "nikclayton/ob-sql-mode") (owner (login . "nikclayton") (id . 773100) (avatar_url . "https://avatars0.githubusercontent.com/u/773100?v=4") (gravatar_id . "") (url . "https://api.github.com/users/nikclayton") (html_url . "https://github.com/nikclayton") (followers_url . "https://api.github.com/users/nikclayton/followers") (following_url . "https://api.github.com/users/nikclayton/following{/other_user}") (gists_url . "https://api.github.com/users/nikclayton/gists{/gist_id}") (starred_url . "https://api.github.com/users/nikclayton/starred{/owner}{/repo}") (subscriptions_url . "https://api.github.com/users/nikclayton/subscriptions") (organizations_url . "https://api.github.com/users/nikclayton/orgs") (repos_url . "https://api.github.com/users/nikclayton/repos") (events_url . "https://api.github.com/users/nikclayton/events{/privacy}") (received_events_url . "https://api.github.com/users/nikclayton/received_events") (type . "User") (site_admin)) (private) (html_url . "https://github.com/nikclayton/ob-sql-mode") (description . "sql-mode backend for Org Babel") (fork) (url . "https://api.github.com/repos/nikclayton/ob-sql-mode") (forks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/forks") (keys_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/keys{/key_id}") (collaborators_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/collaborators{/collaborator}") (teams_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/teams") (hooks_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/hooks") (issue_events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/events{/number}") (events_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/events") (assignees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/assignees{/user}") (branches_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/branches{/branch}") (tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/tags") (blobs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/blobs{/sha}") (git_tags_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/tags{/sha}") (git_refs_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/refs{/sha}") (trees_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/trees{/sha}") (statuses_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/statuses/{sha}") (languages_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/languages") (stargazers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/stargazers") (contributors_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contributors") (subscribers_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscribers") (subscription_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/subscription") (commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/commits{/sha}") (git_commits_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/git/commits{/sha}") (comments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/comments{/number}") (issue_comment_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues/comments{/number}") (contents_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/contents/{+path}") (compare_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/compare/{base}...{head}") (merges_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/merges") (archive_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/{archive_format}{/ref}") (downloads_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/downloads") (issues_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/issues{/number}") (pulls_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/pulls{/number}") (milestones_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/milestones{/number}") (notifications_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/notifications{?since,all,participating}") (labels_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/labels{/name}") (releases_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/releases{/id}") (deployments_url . "https://api.github.com/repos/nikclayton/ob-sql-mode/deployments") (created_at . "2017-01-04T16:22:43Z") (updated_at . "2018-02-06T15:22:10Z") (pushed_at . "2018-02-09T09:33:14Z") (git_url . "git://github.com/nikclayton/ob-sql-mode.git") (ssh_url . "git@github.com:nikclayton/ob-sql-mode.git") (clone_url . "https://github.com/nikclayton/ob-sql-mode.git") (svn_url . "https://github.com/nikclayton/ob-sql-mode") (homepage) (size . 19) (stargazers_count . 7) (watchers_count . 7) (language . "Emacs Lisp") (has_issues . t) (has_projects . t) (has_downloads . t) (has_wiki . t) (has_pages) (forks_count . 5) (mirror_url) (archived) (open_issues_count . 2) (license (key . "gpl-3.0") (name . "GNU General Public License v3.0") (spdx_id . "GPL-3.0") (url . "https://api.github.com/licenses/gpl-3.0")) (forks . 5) (open_issues . 2) (watchers . 7) (default_branch . "master")) (network_count . 5) (subscribers_count . 1)) "/home/stardiviner/Code/Emacs/kk")
  call-interactively(magithub-clone record nil)
  #f(compiled-function (cmd &optional record-flag keys special) "Execute CMD as an editor command.\nCMD must be a symbol that satisfies the `commandp' predicate.\nOptional second arg RECORD-FLAG non-nil\nmeans unconditionally put this command in the variable `command-history'.\nOtherwise, that is done only if an arg is read using the minibuffer.\nThe argument KEYS specifies the value to use instead of (this-command-keys)\nwhen reading the arguments; if it is nil, (this-command-keys) is used.\nThe argument SPECIAL, if non-nil, means that this command is executing\na special event, so ignore the prefix argument and don't clear it." #<bytecode 0x24d23b>)(magithub-clone record nil nil)
vermiculus commented 6 years ago

Looks like the error is starting here:

https://github.com/vermiculus/magithub/blob/bcb7ac0340ddeb17e0cbeb3092591d9b51e0ffee/magithub.el#L253

which calls

magit-get("magithub.confirm.cloneForkSetUpstreamToParent")

I'm not convinced your working directory existed before you called magithub-clone (which calls magit-get which calls git in the current directory -- if that exists!) This should be handled by the following:

https://github.com/vermiculus/magithub/blob/bcb7ac0340ddeb17e0cbeb3092591d9b51e0ffee/magithub.el#L243-L256

So, I think I can safely assume /home/stardiviner/Code/Emacs/kk did not yet exist, but did /home/stardiviner/Code/Emacs exist?

stardiviner commented 6 years ago

Yes /home/stardiviner/Code/Emacs exist.

vermiculus commented 6 years ago

Ah, there we are:

https://github.com/vermiculus/magithub/blob/bcb7ac0340ddeb17e0cbeb3092591d9b51e0ffee/magithub.el#L260

That's what's responsible for creating the directory, but we're calling git before we have that directory. I'll push a fix tonight, but it should be easy if you'd like to submit a PR 😄

stardiviner commented 6 years ago

Seems (mkdir dir t) already exist, I have to admit I'm still newbie on programming. Should I use (let ((default-directory dir)) .. etc to let magit-clone execute under that directory? But after check out magit-clone docstring. Seems right. Sigh. I will wait for your fix. (Improve my skill more)

vermiculus commented 6 years ago

You should move the (mkdir dir t) to before the let form that binds default-directory.

I can push a patch later this evening if this bug is still around 👍

stardiviner commented 6 years ago

Aha, I understand. Let me get a PR. :)

vermiculus commented 6 years ago

Above PR was merged as eb8a794df0db2e7edea1106a87bf03f94ec7e192.