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
891a4681
Commit
891a4681
authored
Jan 04, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dat errorcode
parent
4a863c06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
src/odb.c
+2
-1
src/odb_pack.c
+5
-0
No files found.
src/odb.c
View file @
891a4681
...
...
@@ -608,7 +608,7 @@ int git_odb__read_header_or_object(
int
git_odb_read
(
git_odb_object
**
out
,
git_odb
*
db
,
const
git_oid
*
id
)
{
unsigned
int
i
;
int
error
=
GIT_ENOTFOUND
;
int
error
;
bool
refreshed
=
false
;
git_rawobj
raw
;
...
...
@@ -624,6 +624,7 @@ int git_odb_read(git_odb_object **out, git_odb *db, const git_oid *id)
return
0
;
attempt_lookup:
error
=
GIT_ENOTFOUND
;
for
(
i
=
0
;
i
<
db
->
backends
.
length
&&
error
<
0
;
++
i
)
{
backend_internal
*
internal
=
git_vector_get
(
&
db
->
backends
,
i
);
...
...
src/odb_pack.c
View file @
891a4681
...
...
@@ -600,7 +600,12 @@ int git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir)
}
if
(
git_path_isdir
(
git_buf_cstr
(
&
path
))
==
true
)
{
int
error
;
backend
->
pack_folder
=
git_buf_detach
(
&
path
);
error
=
pack_backend__refresh
((
git_odb_backend
*
)
backend
);
if
(
error
<
0
)
return
error
;
}
backend
->
parent
.
read
=
&
pack_backend__read
;
...
...
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