We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718eb4b commit 657a395Copy full SHA for 657a395
src/refs.c
@@ -16,6 +16,8 @@
16
17
#define MAX_NESTING_LEVEL 5
18
19
+#define GIT_PACKED_REFS_FILE_MODE 0644
20
+
21
enum {
22
GIT_PACKREF_HAS_PEEL = 1,
23
GIT_PACKREF_WAS_LOOSE = 2
@@ -802,7 +804,7 @@ static int packed_write(git_repository *repo)
802
804
/* if we've written all the references properly, we can commit
803
805
* the packfile to make the changes effective */
806
if (error == GIT_SUCCESS) {
- error = git_filebuf_commit(&pack_file, GIT_PACK_FILE_MODE);
807
+ error = git_filebuf_commit(&pack_file, GIT_PACKED_REFS_FILE_MODE);
808
809
/* when and only when the packfile has been properly written,
810
* we can go ahead and remove the loose refs */
0 commit comments