Coder Social home page Coder Social logo

Clone error (Windows 10) about gitember HOT 4 CLOSED

iazarny avatar iazarny commented on August 14, 2024
Clone error (Windows 10)

from gitember.

Comments (4)

iazarny avatar iazarny commented on August 14, 2024

Can you send the C:\Users\Win10.gitconfig file ?

from gitember.

zhaolinlau avatar zhaolinlau commented on August 14, 2024

Can you send the C:\Users\Win10.gitconfig file ?

[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Zhaolin Lau
email = [email protected]
[core]
editor = atom
[gui]
editor = C:\Users\Win10\AppData\Local\atom\atom.exe
[http]
sslVerify = false

from gitember.

zhaolinlau avatar zhaolinlau commented on August 14, 2024

Codes below are the error message.
Cannot clone
org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file C:\Users\Win10.gitconfig
at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:186)
at org.eclipse.jgit.util.SystemReader.updateAll(SystemReader.java:390)
at org.eclipse.jgit.util.SystemReader.getUserConfig(SystemReader.java:316)
at com.az.gitember.service.GitRepoService.configureTransportCommand(GitRepoService.java:1229)
at com.az.gitember.service.GitRepoService.cloneRepository(GitRepoService.java:1011)
at com.az.gitember.controller.handlers.CloneEventHandler$1.call(CloneEventHandler.java:31)
at com.az.gitember.controller.handlers.CloneEventHandler$1.call(CloneEventHandler.java:28)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Newline in quotes not allowed
at org.eclipse.jgit.lib.Config.readValue(Config.java:1388)
at org.eclipse.jgit.lib.Config.fromTextRecurse(Config.java:1164)
at org.eclipse.jgit.lib.Config.fromText(Config.java:1098)
at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:144)
... 9 more

Works with http method, but can't clone with ssh

from gitember.

iazarny avatar iazarny commented on August 14, 2024

Cannot reproduce. However :

  1. related to undelaying jgit lib, whcuih is used in eclipse ide, egit, etc.
  2. according to the exceptions it thrown, during reading "lfs" value. "lfs" only one quoted value.
    if ('\n' == c) { if (quote) { throw new ConfigInvalidException( // This is Config.java:1388 JGitText.get().newlineInQuotesNotAllowed); } in.reset(); break; }
  3. may be "lfs" some non-printable char among "lfs" chars, which is not copied to the "Win10.gitconfig
  4. "Works with http method, but can't clone with ssh" looks really strange, because code is related to config parsing , which is 100% protocol agnostic.
  5. some little chance, that this issue was fixed in v2.2 with added LFS supporr.

from gitember.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.