Giter Club home page Giter Club logo

Comments (5)

yarikoptic avatar yarikoptic commented on May 30, 2024

do you have a minimal example to replicate? what version of annex/git?

from datalad.

bpoldrack avatar bpoldrack commented on May 30, 2024

The error itself may be due to the use of the submodule and not bleeding-edge git annex. My point is the exitcode!

cd wherever-youhave-datalad-repo/datalad/tests/testrepos/basic/r1
git annex init

results in:
init fatal: ref HEAD is not a symbolic ref
ok
(Recording state in git...)

Exitcode: 0

git annex version
git-annex version: 5.20141125
build flags: Assistant Webapp Webapp-secure Pairing Testsuite S3 WebDAV Inotify DBus DesktopNotify XMPP DNS Feeds Quvi TDFA CryptoHash
key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SKEIN256E SKEIN512E SHA256 SHA1 SHA512 SHA224 SHA384 SKEIN256 SKEIN512 WORM URL
remote types: git gcrypt S3 bup directory rsync web webdav tahoe glacier ddar hook external
local repository version: 5
supported repository version: 5
upgrade supported from repository versions: 0 1 2 4

The "fatal" on stderr when exiting with 0 seems to be a strange combination. It's either not so fatal at all or should return non-zero, right?

Edit:
This leads to the question whether checking git-annex' exitcode is enough or some parsing of stderr is needed.

from datalad.

yarikoptic avatar yarikoptic commented on May 30, 2024

what systems it that on? there is now more relevant moving gears in annex than before, so it would be worth checking first with recent annex before we inquire help from joey

from datalad.

bpoldrack avatar bpoldrack commented on May 30, 2024

It's jessie.
By now, I don't want joey to fix something. We should have a closer look
(or just ask joey), whether or not catching the exitcode is supposed to be
sufficient for our needs.

2015-03-19 4:01 GMT+01:00 Yaroslav Halchenko [email protected]:

what systems it that on? there is now more relevant moving gears in annex
than before, so it would be worth checking first with recent annex before
we inquire help from joey


Reply to this email directly or view it on GitHub
#69 (comment).

from datalad.

yarikoptic avatar yarikoptic commented on May 30, 2024

Joey said that it is most probably due to that submodule handling in
Windows, which was recently fixed up. So I will close this issue, but
if it reappears with the new version of annex -- feel free to reopen.

Otherwise, git annex must spit out the error code if operation didn't
succeed as a result. There might be intermediate failures which could
cause it to fall back to alternative way to accomplish the same thing.

from datalad.

Related Issues (20)

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.