File tree Expand file tree Collapse file tree 4 files changed +45
-6
lines changed Expand file tree Collapse file tree 4 files changed +45
-6
lines changed Original file line number Diff line number Diff line change
1
+ Git v1.8.4.5 Release Notes
2
+ ==========================
3
+
4
+ Fixes since v1.8.4.4
5
+ --------------------
6
+
7
+ * Recent update to remote-hg that attempted to make it work better
8
+ with non ASCII pathnames fed Unicode strings to the underlying Hg
9
+ API, which was wrong.
10
+
11
+ * "git submodule init" copied "submodule.$name.update" settings from
12
+ .gitmodules to .git/config without making sure if the suggested
13
+ value was sensible.
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ Documentation for older releases are available here:
48
48
* release notes for
49
49
link:RelNotes/1.8.5.txt[1.8.5].
50
50
51
- * link:v1.8.4.4 /git.html[documentation for release 1.8.4.4 ]
51
+ * link:v1.8.4.5 /git.html[documentation for release 1.8.4.5 ]
52
52
53
53
* release notes for
54
+ link:RelNotes/1.8.4.5.txt[1.8.4.5],
54
55
link:RelNotes/1.8.4.4.txt[1.8.4.4],
55
56
link:RelNotes/1.8.4.3.txt[1.8.4.3],
56
57
link:RelNotes/1.8.4.2.txt[1.8.4.2],
Original file line number Diff line number Diff line change @@ -612,11 +612,21 @@ cmd_init()
612
612
fi
613
613
614
614
# Copy "update" setting when it is not set yet
615
- upd=" $( git config -f .gitmodules submodule." $name " .update) "
616
- test -z " $upd " ||
617
- test -n " $( git config submodule." $name " .update) " ||
618
- git config submodule." $name " .update " $upd " ||
619
- die " $( eval_gettext " Failed to register update mode for submodule path '\$ displaypath'" ) "
615
+ if upd=" $( git config -f .gitmodules submodule." $name " .update) " &&
616
+ test -n " $upd " &&
617
+ test -z " $( git config submodule." $name " .update) "
618
+ then
619
+ case " $upd " in
620
+ rebase | merge | none)
621
+ ;; # known modes of updating
622
+ * )
623
+ echo >&2 " warning: unknown update mode '$upd ' suggested for submodule '$name '"
624
+ upd=none
625
+ ;;
626
+ esac
627
+ git config submodule." $name " .update " $upd " ||
628
+ die " $( eval_gettext " Failed to register update mode for submodule path '\$ displaypath'" ) "
629
+ fi
620
630
done
621
631
}
622
632
Original file line number Diff line number Diff line change @@ -323,6 +323,21 @@ test_expect_success 'submodule update - command in .git/config catches failure'
323
323
)
324
324
'
325
325
326
+ test_expect_success ' submodule init does not copy command into .git/config' '
327
+ (cd super &&
328
+ H=$(git ls-files -s submodule | cut -d" " -f2) &&
329
+ mkdir submodule1 &&
330
+ git update-index --add --cacheinfo 160000 $H submodule1 &&
331
+ git config -f .gitmodules submodule.submodule1.path submodule1 &&
332
+ git config -f .gitmodules submodule.submodule1.url ../submodule &&
333
+ git config -f .gitmodules submodule.submodule1.update !false &&
334
+ git submodule init submodule1 &&
335
+ echo "none" >expect &&
336
+ git config submodule.submodule1.update >actual &&
337
+ test_cmp expect actual
338
+ )
339
+ '
340
+
326
341
test_expect_success ' submodule init picks up rebase' '
327
342
(cd super &&
328
343
git config -f .gitmodules submodule.rebasing.update rebase &&
You can’t perform that action at this time.
0 commit comments