Skip to content

Commit daad3aa

Browse files
committed
Sync with 1.8.5.1
* maint: Git 1.8.5.1 ref-iteration doc: add_submodule_odb() returns 0 for success
2 parents 34f4a75 + a155a5f commit daad3aa

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Documentation/RelNotes/1.8.5.1.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Git v1.8.5.1 Release Notes
2+
==========================
3+
4+
Fixes since v1.8.5
5+
------------------
6+
7+
* "git submodule init" copied "submodule.$name.update" settings from
8+
.gitmodules to .git/config without making sure if the suggested
9+
value was sensible.

Documentation/git.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ unreleased) version of Git, that is available from 'master'
4343
branch of the `git.git` repository.
4444
Documentation for older releases are available here:
4545

46-
* link:v1.8.5/git.html[documentation for release 1.8.5]
46+
* link:v1.8.5.1/git.html[documentation for release 1.8.5.1]
4747

4848
* release notes for
49+
link:RelNotes/1.8.5.1.txt[1.8.5.1],
4950
link:RelNotes/1.8.5.txt[1.8.5].
5051

5152
* link:v1.8.4.5/git.html[documentation for release 1.8.4.5]

Documentation/technical/api-ref-iteration.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ submodules object database. You can do this by a code-snippet like
5050
this:
5151

5252
const char *path = "path/to/submodule"
53-
if (!add_submodule_odb(path))
53+
if (add_submodule_odb(path))
5454
die("Error submodule '%s' not populated.", path);
5555

56-
`add_submodule_odb()` will return an non-zero value on success. If you
56+
`add_submodule_odb()` will return zero on success. If you
5757
do not do this you will get an error for each ref that it does not point
5858
to a valid object.
5959

0 commit comments

Comments
 (0)