enter_chroot: fix gitcookies lookup

When the .gitconfig setting uses ~/ in its path, make sure we expand it
as the right source user.

BUG=chromium:1025578
TEST=`cros_sdk` copies in gitcookies now

Change-Id: Ia832db1f8a1e409e4ad449c5440bc6c5b3dc4610
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/1959699
Reviewed-by: Mike Nichols <mikenichols@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2340656
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
1 file changed