aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawlzlNQbf6wBgv9j6-UqfpXcQyAYMF8S3t4 <Tim@web>2013-08-03 11:44:10 +0000
committerGravatar admin <admin@branchable.com>2013-08-03 11:44:10 +0000
commitfb9741b7a52f711ca48e0a0e85a96a5917e5b436 (patch)
treedc0fd089160081f6374933064c613db87d55f870
parent2f7f38d44917c9572e92e4c45fbb493bb558586e (diff)
-rw-r--r--doc/forum/Is_it_possible_to_make_git-sync_not_nullify_symlinks__63__.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/forum/Is_it_possible_to_make_git-sync_not_nullify_symlinks__63__.mdwn b/doc/forum/Is_it_possible_to_make_git-sync_not_nullify_symlinks__63__.mdwn
new file mode 100644
index 000000000..1d2c8936b
--- /dev/null
+++ b/doc/forum/Is_it_possible_to_make_git-sync_not_nullify_symlinks__63__.mdwn
@@ -0,0 +1,18 @@
+Hey,
+
+I've found that git annex works great as a way to publish websites to a web server. I can edit my website on my computer, `git annex sync` my working directory to the VPS, and then `git annex get files-I-want-to-publish`. This works great. I can maintain my normal working directory structure on the VPS and I don't have to worry about people seeing files I DIDN'T want to publish, since the dead symlinks just show up as 404s.
+
+There's one small problem.
+
+Say:
+
+ 1) I've already published a file using `git annex get file-to-update`
+ 2) I update that file on my computer
+ 3) I do `git annex sync`
+ 4) I do `git annex get file-to-update`
+
+Between steps 3 and 4, file-to-update goes from being an accessible web resource to being a dead symlink. It's not really a problem for me, as hardly anyone visits my site. But it would be nice if I could make `sync` leave the old symlink to the old file until I `get`ed the new one.
+
+Is this possible?
+
+PS: For those who might follow in my footsteps, remember that you probably don't want people reading the contents of your .git dir, so make a re-write rule for this!