{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/82","repository_url":"https://api.github.com/repos/JuliaLang/PkgDev.jl","labels_url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/82/comments","events_url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/82/events","html_url":"https://github.com/JuliaLang/PkgDev.jl/issues/82","id":181784820,"number":82,"title":"config() won't recognize symlinked .gitconfig on mac.","user":{"login":"abcsds","id":2694381,"avatar_url":"https://avatars.githubusercontent.com/u/2694381?v=3","gravatar_id":"","url":"https://api.github.com/users/abcsds","html_url":"https://github.com/abcsds","followers_url":"https://api.github.com/users/abcsds/followers","following_url":"https://api.github.com/users/abcsds/following{/other_user}","gists_url":"https://api.github.com/users/abcsds/gists{/gist_id}","starred_url":"https://api.github.com/users/abcsds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abcsds/subscriptions","organizations_url":"https://api.github.com/users/abcsds/orgs","repos_url":"https://api.github.com/users/abcsds/repos","events_url":"https://api.github.com/users/abcsds/events{/privacy}","received_events_url":"https://api.github.com/users/abcsds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T23:04:09Z","updated_at":"2016-10-08T12:45:36Z","closed_at":null,"body":"Good day, \r\nI ran PkgDev.config() on julia 0.5 Mac OS X:\r\n\r\n```\r\nJulia Version 0.5.0\r\nCommit 3c9d753 (2016-09-19 18:14 UTC)\r\nPlatform Info:\r\n  System: Darwin (x86_64-apple-darwin13.4.0)\r\n  CPU: Intel(R) Core(TM)2 Duo CPU     P7550  @ 2.26GHz\r\n  WORD_SIZE: 64\r\n  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Penryn)\r\n  LAPACK: libopenblas64_\r\n  LIBM: libopenlibm\r\n  LLVM: libLLVM-3.7.1 (ORCJIT, penryn)\r\n```\r\n\r\nRight after asking for my github user, this error is thrown:\r\n\r\n```\r\nERROR: GitError(Code:ERROR, Class:OS, failed to stat '/Users/abcsds/.gitconfig/Users/abcsds/.dotfiles/git/gitconfig.symlink': Not a directory)\r\n in macro expansion at ./libgit2/error.jl:99 [inlined]\r\n in set!(::Base.LibGit2.GitConfig, ::String, ::String) at ./libgit2/config.jl:111\r\n in set!(::Base.LibGit2.GitConfig, ::String, ::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?\r\n in config(::Bool) at /Users/abcsds/.julia/v0.5/PkgDev/src/PkgDev.jl:126\r\n in config() at /Users/abcsds/.julia/v0.5/PkgDev/src/PkgDev.jl:102\r\n```\r\n\r\nThe actual gitconfig is `/Users/abcsds/.dotfiles/git/gitconfig.symlink'`, but it seems to be concatenating both the symlinked, and the original names.\r\n`libgit2` is a dylib, so I'm gessing it has to do with how the `set()` function handles the .gitconfig name. Is that right?\r\n\r\n*NOTE*: my gitconfig does not have my github user."},"comment":{"url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/comments/252422787","html_url":"https://github.com/JuliaLang/PkgDev.jl/issues/82#issuecomment-252422787","issue_url":"https://api.github.com/repos/JuliaLang/PkgDev.jl/issues/82","id":252422787,"user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T12:45:36Z","updated_at":"2016-10-08T12:45:36Z","body":"Hard to tell whether this is a bug in the Julia bindings or in libgit2 itself. I'd usually suspect the former unless it gets traced down to the specific ccall and it looks like the inputs we give it match what the libgit2 documentation says we should be doing, in which case then we could write a C reproducer and report upstream. If it's a bindings problem, then maybe Gallium or manually tracing the inputs through this call chain could tell us where it's going wrong."}}
{"actor":{"display_login":"tkelman"}}