Commit b29f2f7
committed
When running
Summary:
The advantage of local is it doesn't pollute global state, but the
disadvantage is that the settings are not inherited by submodules.
(This is a misfeature, in my opinion.) So whenever we set anything
--local, we need to manually do it in all submodules as well.
This isn't a perfect solution, since if new submodules are added later
they won't get the setting -- we'd have to hook into `git p` or
something for that -- but it's better than nothing!
In particular, it fixes (modulo the caveat above)
https://app.asana.com/0/31965416896056/172514774666235
and also
https://app.asana.com/0/31965416896056/51708574715815
Update submodules recursively, and do a better job parsing `status` output.
I wasn't doing recursive submodules before because I figured they
typically weren't *our* code so there was no point in using our
configs on them. But there's no harm either, and they *can* be code
we care about, so let's just do it.
Just use no-arg `split` so we ignore leading spcae and runs of whitespace.
No-arg `split` is the best.
Test Plan:
I ran
cd /tmp
~/khan/devtools/ka-clone/bin/ka-clone -p [email protected]:Khan/webapp
cd webapp/intl/translations
git config -l --local --includes | grep transport
and saw it say 'git-bigfile.transport=s3'.
On an old version of ka-clone, it did not say that.
(same)
(same)
Reviewers: mroth, benkraft
Reviewed By: benkraft
Differential Revision: https://phabricator.khanacademy.org/D34584gitconfig --local, run it in subdirectories as well.1 parent d06a53b commit b29f2f7
1 file changed
+40
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
83 | 108 | | |
84 | 109 | | |
85 | 110 | | |
| |||
89 | 114 | | |
90 | 115 | | |
91 | 116 | | |
92 | | - | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| |||
156 | 182 | | |
157 | 183 | | |
158 | 184 | | |
159 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
160 | 190 | | |
161 | 191 | | |
162 | 192 | | |
163 | | - | |
| 193 | + | |
164 | 194 | | |
165 | 195 | | |
166 | 196 | | |
| |||
189 | 219 | | |
190 | 220 | | |
191 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
192 | 228 | | |
193 | 229 | | |
194 | 230 | | |
| |||
232 | 268 | | |
233 | 269 | | |
234 | 270 | | |
| 271 | + | |
235 | 272 | | |
236 | 273 | | |
237 | 274 | | |
| |||
0 commit comments