Title: Failed to initialize repository while the path contains "~" · Issue #83 · gitpython-developers/GitPython · GitHub
Open Graph Title: Failed to initialize repository while the path contains "~" · Issue #83 · gitpython-developers/GitPython
X Title: Failed to initialize repository while the path contains "~" · Issue #83 · gitpython-developers/GitPython
Description: I have tried to initialize a repository using a short path which contains "~", a exception be raised: >>> repo = git.Repo.init("~/test.git", bare=True) Traceback (most recent call last): File "", line 1, in
Open Graph Description: I have tried to initialize a repository using a short path which contains "~", a exception be raised: >>> repo = git.Repo.init("~/test.git", bare=True) Traceback (most recent call last): File " X Description: I have tried to initialize a repository using a short path which contains "~", a exception be raised: >>> repo = git.Repo.init("~/test.git", bare=True) Traceback (most ...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/83
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to initialize repository while the path contains \"~\"","articleBody":"I have tried to initialize a repository using a short path which contains \"~\", a exception be raised:\n\n```\n\u003e\u003e\u003e repo = git.Repo.init(\"~/test.git\", bare=True)\nTraceback (most recent call last):\n File \"\u003cinput\u003e\", line 1, in \u003cmodule\u003e\n File \".../lib/python2.7/site-packages/git/repo/base.py\", line 657, in init\n return Repo(path)\n File \".../lib/python2.7/site-packages/git/repo/base.py\", line 98, in __init__\n raise NoSuchPathError(epath)\nNoSuchPathError: /home/username/test.git\n```\n\nIf I create the target directory first, it will be another exception:\n\n```\nTraceback (most recent call last):\n File \"\u003cinput\u003e\", line 1, in \u003cmodule\u003e\n File \".../lib/python2.7/site-packages/git/repo/base.py\", line 657, in init\n return Repo(path)\n File \".../lib/python2.7/site-packages/git/repo/base.py\", line 122, in __init__\n raise InvalidGitRepositoryError(epath)\nInvalidGitRepositoryError: /home/username/test.git\n```\n\nBut while I use the full path without any character `~` instead of, it works.\n\n```\n\u003e\u003e\u003e repo = git.Repo.init(\"/home/username/test.git\", bare=True)\n\u003e\u003e\u003e repo\n\u003cgit.Repo \"/home/username/test.git\"\u003e\n\u003e\u003e\u003e \n```\n","author":{"url":"https://github.com/tonyseek","@type":"Person","name":"tonyseek"},"datePublished":"2012-12-10T13:03:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/83/GitPython/issues/83"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:9b3bb5d5-3dbf-847d-f59f-87559331d808 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 9CF6:1E0146:1765AF3:1F635D2:6969AA4D html-safe-nonce fbeb7afc5ce637647f7d4a9044762f993bb41c9e52120692e4ceac1b41c8ac30 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0Y2OjFFMDE0NjoxNzY1QUYzOjFGNjM1RDI6Njk2OUFBNEQiLCJ2aXNpdG9yX2lkIjoiMjE4MDA0MTYyMjMyMjk4MDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac b3ffe11067ba8be8ba8a81b437a09a425b5ecbf4e2b1285b240e4205c4e488ad hovercard-subject-tag issue:9139262 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/83/issue_layout twitter:image https://opengraph.githubassets.com/4ae3ebe47122889f69bb87936fbec8c7b6f3c6315d531178be2df4c572348b01/gitpython-developers/GitPython/issues/83 twitter:card summary_large_image og:image https://opengraph.githubassets.com/4ae3ebe47122889f69bb87936fbec8c7b6f3c6315d531178be2df4c572348b01/gitpython-developers/GitPython/issues/83 og:image:alt I have tried to initialize a repository using a short path which contains "~", a exception be raised: >>> repo = git.Repo.init("~/test.git", bare=True) Traceback (most recent call last): File " og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username tonyseek hostname github.com expected-hostname github.com None 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 turbo-cache-control no-preview go-import github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git octolytics-dimension-user_id 503709 octolytics-dimension-user_login gitpython-developers octolytics-dimension-repository_id 1126087 octolytics-dimension-repository_nwo gitpython-developers/GitPython octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 1126087 octolytics-dimension-repository_network_root_nwo gitpython-developers/GitPython turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.