aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fusefs-gitfs/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-10-27 21:21:12 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-10-27 21:21:12 +0000
commit0c3efe686ab9bfa9a86eae64f4c9c39ae6961bbe (patch)
tree03d9b7986c641ec6ea797e397190f7f19abb2097 /sysutils/fusefs-gitfs/files
parentdb6d127bfca8333b163a6e0bd03a814405c2667f (diff)
downloadports-0c3efe686ab9bfa9a86eae64f4c9c39ae6961bbe.tar.gz
ports-0c3efe686ab9bfa9a86eae64f4c9c39ae6961bbe.zip
sysutils/fusefs-gitfs: add new port
Based on: ports-mgmt/py-pytoport output gitfs is a FUSE file system that fully integrates with git. You can mount a remote repository's branch locally, and any subsequent changes made to the files will be automatically committed to the remote. http://www.presslabs.com/gitfs/
Notes
Notes: svn path=/head/; revision=424794
Diffstat (limited to 'sysutils/fusefs-gitfs/files')
-rw-r--r--sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py b/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py
new file mode 100644
index 000000000000..50a7e3ef3432
--- /dev/null
+++ b/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py
@@ -0,0 +1,36 @@
+https://github.com/PressLabs/gitfs/issues/258
+https://github.com/PressLabs/gitfs/issues/257
+
+--- gitfs/utils/args.py.orig 2016-10-19 15:12:59 UTC
++++ gitfs/utils/args.py
+@@ -43,7 +43,7 @@ class Args(object):
+ ("foreground", (False, "bool")),
+ ("branch", ("master", "string")),
+ ("allow_other", (False, "bool")),
+- ("allow_root", (True, "bool")),
++ ("allow_root", (False, "bool")),
+ ("commiter_name", (self.get_commiter_user, "string")),
+ ("commiter_email", (self.get_commiter_email, "string")),
+ ("max_size", (10, "float")),
+@@ -71,12 +71,6 @@ class Args(object):
+ return self.check_args(self.set_defaults(args))
+
+ def check_args(self, args):
+- # check allow_other and allow_root
+- if args.allow_other:
+- args.allow_root = False
+- else:
+- args.allow_root = True
+-
+ # check log_level
+ if args.debug:
+ args.log_level = 'debug'
+@@ -169,7 +163,7 @@ class Args(object):
+ return "{}@{}".format(args.user, socket.gethostname())
+
+ def get_repo_path(self, args):
+- return tempfile.mkdtemp(dir="/var/lib/gitfs")
++ return tempfile.mkdtemp(prefix="gitfs")
+
+ def get_ssh_key(self, args):
+ return os.environ["HOME"] + "/.ssh/id_rsa"