TobiasTheViking/flickrannex — pull request #12 by resuscv (2013-08-27 07:05:57+00:00)
Title: Handle indirect repos - set tags to empty.

I've updated the code to set tags to NULL/empty when the repo is indirect.

I've done this by looking at the sub-directories for the file - if the highest sub-directory is ```.git``` then we must be in an indirect repo.

i.e. an indirect filename looks something like:

/home/me/annex-photos/.git/annex/objects/gX/Z3/SHA256E-.jpg/SHA256E-.jpg

So the top sub-directory here is ```.git```