Note that there are some explanatory texts on larger screens.

plurals
  1. POCygwin: git svn complains about bad config file
    primarykey
    data
    text
    <p>On Cygwin using git-svn performing remote operations such as:</p> <ul> <li>git svn rebase</li> <li>git svn dcommit</li> <li>etc.</li> </ul> <p>Causes one of many strange error messages to occur regarding bad config files</p> <pre><code>$ git svn rebase fatal: bad config file line 1 in /home/tj/.gitconfig fatal: bad config file line 1 in /home/tj/.gitconfig Cannot rebase: You have unstaged changes. Please commit or stash them. rebase refs/remotes/git-svn: command returned error: 1 </code></pre> <p>There aren't actually any unstaged changes, that error message seems to be an artifact of the config file issue:</p> <pre><code># On branch master nothing to commit (working directory clean) </code></pre> <p>Occasionally it complains about other lines in the same file, or about lines in .git/config</p> <p>My actual git config files are very simple, and the exact same ones work fine on other machines (which are also running Cygwin). For reference:</p> <p>.gitconfig:</p> <pre><code>[user] name = tj email = tj@example.com </code></pre> <p>.git/config:</p> <pre><code>[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true preloadindex = true [svn-remote "svn"] url = https://url.to/repository fetch = :refs/remotes/git-svn </code></pre> <p>The octo-spacing is a tab in the file, and looking at the file in vim with set list shows no strange characters muddling around.</p> <p>The strangest part of all is that sometimes it just works without issue. However, after a short period of time, it continues showing the error messages. If anyone knows that the issue may be, or how to resolve it, I would greatly appreciate it.</p> <p>Thanks!</p> <p>Edit:</p> <p>What I've tried so far:</p> <ul> <li>Copying good config files from working machines running Cygwin</li> <li>Running rebaseall in Cygwin</li> <li>Reinstalling git-svn package</li> </ul> <p>What I might try:</p> <ul> <li>Reinstalling Cygwin (would rather not)</li> </ul> <p>Edit2: Success?</p> <p>After fiddling around with this for a few hours, I tried removing things from the git configs one by one and seeing if it made a difference.</p> <p>Removing preloadindex = true from the .git/config file seems to have resolved the issue, though it is difficult to say for sure.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload