0

[docs] Remove section about gclient bug

The problem has been mitigated when gclient learned
to query git submodule diff state in https://crrev.com/c/5513190

Bug: 40283612
Change-Id: Ib2f1b57f025cdb1ae5550436d94f01d85208fea5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5590104
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Joanna Wang <jojwang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1309665}
This commit is contained in:
Josip Sokcevic
2024-06-03 23:17:18 +00:00
committed by Chromium LUCI CQ
parent b804c372bc
commit 0073fb0714

@ -98,21 +98,6 @@ git add <file> # for each file you want to stage
git commit -v -m "Fix foo/bar"
```
NOTE: due to a bug in gclient (crbug.com/1475448), it's possible that gclient
left unmanaged git repository. You may need to manually remove those unmanaged
repositories.
```
# Inside chromium/src checkout:
# This ensures that all managed dependencies are in sync:
gclient sync -D
# This moves all unused dependencies to ../unused directory in gclient root
# (just outside of src directory). It then tells git to restore gitlink.
for f in $( git status | grep '(new commits)' | awk '{print $2}' ); do mkdir -p "../unused/`dirname $f`" && mv $f "../unused/$f" && git checkout -- $f; done
# inspect ../unused/ if you'd like, and remove it there's nothing useful there,
# e.g. no non-uploaded commits.
```
If a submodule has uncommitted changes (i.e. you made some manual changes to the
affected submodule), running `git status` in its parent repo will show them as
unstaged changes: