Skip to content

Commit

Permalink
Rename sections from "module" to "submodule" in .gitmodules
Browse files Browse the repository at this point in the history
Rename [module] to [submodule], so that it would be more
forward compatible with the proposed extension by harmonizing
the section names used in .gitmodules and .git/config.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
hjemli authored and gitster committed Jun 12, 2007
1 parent bf2d824 commit d57dd25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ modules_init()
url=$(git-config submodule."$path".url)
test -z "$url" || continue

url=$(GIT_CONFIG=.gitmodules git-config module."$path".url)
url=$(GIT_CONFIG=.gitmodules git-config submodule."$path".url)
test -z "$url" &&
die "No url found for submodule '$path' in .gitmodules"

Expand Down
2 changes: 1 addition & 1 deletion t/t7400-submodule-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_expect_success 'Prepare submodule testing' '
git-add a lib z &&
git-commit -m "super commit 1" &&
mv lib .subrepo &&
GIT_CONFIG=.gitmodules git-config module.lib.url git://example.com/lib.git
GIT_CONFIG=.gitmodules git-config submodule.lib.url git://example.com/lib.git
'

test_expect_success 'status should only print one line' '
Expand Down

0 comments on commit d57dd25

Please sign in to comment.