Commit 7096d0f9e47d39a8fd4f315a7633f3b86a7d6c93

Brodie Rao 2011-11-16T11:36:13

refs: use 0666 permissions when writing packed-refs, not 0644 This matches stock Git's behavior.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refs.c b/src/refs.c
index 05f9357..4f32f44 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -16,7 +16,7 @@
 
 #define MAX_NESTING_LEVEL 5
 
-#define GIT_PACKED_REFS_FILE_MODE 0644
+#define GIT_PACKED_REFS_FILE_MODE 0666
 
 enum {
 	GIT_PACKREF_HAS_PEEL = 1,