Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
657a3951
Commit
657a3951
authored
Nov 07, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write packed-refs with 0644 permissions
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent
718eb4b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/refs.c
+3
-1
No files found.
src/refs.c
View file @
657a3951
...
...
@@ -16,6 +16,8 @@
#define MAX_NESTING_LEVEL 5
#define GIT_PACKED_REFS_FILE_MODE 0644
enum
{
GIT_PACKREF_HAS_PEEL
=
1
,
GIT_PACKREF_WAS_LOOSE
=
2
...
...
@@ -802,7 +804,7 @@ cleanup:
/* 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_PACK_FILE_MODE
);
error
=
git_filebuf_commit
(
&
pack_file
,
GIT_PACK
ED_REFS
_FILE_MODE
);
/* when and only when the packfile has been properly written,
* we can go ahead and remove the loose refs */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment