summaryrefslogtreecommitdiff
path: root/doc/bugs/git_uninit_on_OS_X_causes_SqlLite3_error.mdwn
blob: 1250061d634965fd0eed025cd5c772c052ac12da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
### Please describe the problem.
I am basically having issues with `git annex uninit`

### What steps will reproduce the problem?
    $ git init localrepo
    Initialized empty Git repository in /Users/w/work/temp/test/localrepo/.git/
    $ cd localrepo
    $ git annex init
    init  ok
    (recording state in git...)
    $ git annex uninit
    fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    Deleted branch git-annex (was 98f3795).
*********************
Now if I add a local file I get a different error

    $ git init localrepo
    Initialized empty Git repository in /Users/w/work/temp/test/localrepo/.git/
    $ cd localrepo
    $ git annex init
    init  ok
    (recording state in git...)
    $ date > secret_file
    $ git annex add secret_file
    add secret_file ok
    (recording state in git...)
    $ git commit -am "added"
    [master (root-commit) a2e1882] added
     1 file changed, 1 insertion(+)
     create mode 120000 secret_file
    $ git annex sync
    commit  
    On branch master
    nothing to commit, working directory clean
    ok
    $ git annex uninit
    unannex secret_file ok
    Deleted branch git-annex (was 6a727da).
    git-annex: failed to commit changes to sqlite database: Just SQLite3 returned ErrorCan'tOpen while attempting to perform open ".git/annex/keys/db".
    CallStack (from HasCallStack):
      error, called at ./Database/Handle.hs:111:26 in main:Database.Handle


### What version of git-annex are you using? On what operating system?

    $ brew info git-annex
    git-annex: stable 6.20160527 (bottled), HEAD
    Manage files with git without checking in file contents
    https://git-annex.branchable.com/
    /usr/local/Cellar/git-annex/6.20160527 (104 files, 87.0M) *
      Poured from bottle on 2016-06-06 at 15:36:47
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git-annex.rb
    ==> Dependencies
    Build: ghc ✘, cabal-install ✘, pkg-config ✔
    Required: gsasl ✔, libidn ✔, libmagic ✔, gnutls ✘, quvi ✔
    ==> Options
    --with-git-union-merge
    	Build the git-union-merge tool
    --HEAD
	Install HEAD version

### Please provide any additional information below.

[[!format sh """
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log


# End of transcript or log.
"""]]

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

I am super excited about what I can do with git-annex. I hope to setup and maintain encrypted repo(s) of some of my files, and access them by cloning a local copy of the encrypted repo and getting the files I want, using them, and then deleting the local copy.