summaryrefslogtreecommitdiff
path: root/doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-11-11 17:44:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-11-11 17:44:09 -0400
commit7ee91728cda1a7e851ddd0e3777860fca9893dae (patch)
treedc3144e25f3e844a92b84cdf3e45ff6387086cc4 /doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment
parent8881c671d3bbd0c7a31fac0746146a4dea5729b1 (diff)
parent84be2030df29e7ab9b384d5f43018f20f7d10299 (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
Diffstat (limited to 'doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment')
-rw-r--r--doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment b/doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment
new file mode 100644
index 000000000..c1ba9f2f4
--- /dev/null
+++ b/doc/bare_repositories/comment_1_148e1da70d37d311634a0309a4ff8dcd._comment
@@ -0,0 +1,22 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawmraN_ldJplGunVGmnjjLN6jL9s9TrVMGE"
+ nickname="Ævar Arnfjörð"
+ subject="How to convert bare repositories to non-bare"
+ date="2012-11-11T20:14:44Z"
+ content="""
+I made a repository bare and later wanted to convert it, this would have worked with just plain git:
+
+ cd bare-repo.git
+ mkdir .git
+ mv .??* * .git/
+ git config --unset core.bare
+ git reset --hard
+
+But because git-annex uses different hashing directories under bare repositories all the files in the repo will point to files you don't have. Here's how you can fix that up assuming you're using a backend that assigns unique hashes based on file content (e.g. the SHA256 backend):
+
+ mv .git/annex/objects from-bare-repo
+ git annex add from-bare-repo
+ git rm -f from-bare-repo
+
+
+"""]]