Commits

Anonymous committed 6824081 Merge

Merge pull request #484 from brodie/packed-refs-perms

refs: permissions-related fixes/improvements

Comments (0)

Files changed (2)

 
 #define MAX_NESTING_LEVEL 5
 
-#define GIT_PACKED_REFS_FILE_MODE 0644
-
 enum {
 	GIT_PACKREF_HAS_PEEL = 1,
 	GIT_PACKREF_WAS_LOOSE = 2
 	/* if we've written all the references properly, we can commit
 	 * the packfile to make the changes effective */
 	if (error == GIT_SUCCESS) {
-		error = git_filebuf_commit(&pack_file, GIT_PACKED_REFS_FILE_MODE);
+		error = git_filebuf_commit(&pack_file, GIT_PACKEDREFS_FILE_MODE);
 
 		/* when and only when the packfile has been properly written,
 		 * we can go ahead and remove the loose refs */
 #define GIT_SYMREF "ref: "
 #define GIT_PACKEDREFS_FILE "packed-refs"
 #define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled "
+#define GIT_PACKEDREFS_FILE_MODE 0666
 
 #define GIT_HEAD_FILE "HEAD"
 #define GIT_FETCH_HEAD_FILE "FETCH_HEAD"