File tree Expand file tree Collapse file tree 4 files changed +29
-36
lines changed Expand file tree Collapse file tree 4 files changed +29
-36
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ if [ " $3 " = " 1" ]; then
3+ echo " Updating submodules..."
4+ git submodule update --init --recursive
5+ fi
6+
Original file line number Diff line number Diff line change 22 path = external/duckdb
33 url = https://github.com/duckdb/duckdb.git
44 branch = main
5+ [submodule ]
6+ recurse = true
Original file line number Diff line number Diff line change @@ -44,6 +44,27 @@ pip install 'duckdb[all]'
4444
4545## Development
4646
47+ ### Cloning
48+
49+ When you clone the repo or your fork, make sure you initialize the duckdb submodule:
50+ ``` shell
51+ git clone --recurse-submodules < repo>
52+ ```
53+
54+ ... or, if you already have the repo locally:
55+ ``` shell
56+ git clone < your-repo>
57+ cd < your-repo>
58+ git submodule update --init --recursive
59+ ```
60+
61+ If you'll be switching between branches that are have the submodule set to different refs, then make your life
62+ easier and add the git hooks in the .githooks directory to your local config:
63+ ``` shell
64+ git config --local core.hooksPath .githooks/
65+ ```
66+
67+
4768### Building wheels and sdists
4869
4970 To build a wheel and sdist for your system and the default Python version:
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments