Ian Wienand 4cb3346fec source-repositories : use explicit sudo/-C args when in REPO_DEST
The recent git ownership-checking changes (see related bug for full
details) mean we can not run git in non-owned directories.

We have a couple of cases here where we have done a "pushd" to work in
the REPO_DEST context; this is the destination directory that is
inside the chroot so needs to be operated on as "root" (via sudo
calls).  This certainly makes sense -- but given the new way of things
it can hide what context each call is working in, which is now very
important.  Previously this worked because you could read it; now it's
doing the UID check too, calls in here without sudo now fail.

Remvoe the pushd's and make every call that works in REPO_DEST
explicit with -C, and add sudo calls around it.

Change-Id: Id1f6bd94c9c77ef6ab2b562a7e0bc48f749c58ac
Related-Bug: https://bugs.launchpad.net/devstack/+bug/1968798
2022-04-14 16:53:37 +00:00
..
2020-04-02 10:11:35 +11:00
2022-02-01 15:39:24 +11:00
2021-09-01 23:49:27 +02:00
2022-02-10 15:08:56 +11:00
2017-04-05 13:11:22 +10:00
2017-01-31 14:14:19 +11:00
2022-04-07 09:01:13 +02:00
2017-05-19 12:43:36 -07:00
2019-12-18 11:42:02 -05:00
2021-07-05 11:45:02 +10:00
2017-05-19 12:43:36 -07:00
2022-02-22 13:43:18 +13:00
2019-05-29 12:07:44 +00:00
2022-02-10 15:08:56 +11:00
2017-02-02 20:36:23 +11:00
2020-08-24 10:21:35 -05:00
2017-02-02 11:20:00 +11:00
2017-03-14 14:49:49 +11:00
2018-02-23 10:04:40 +11:00
2021-07-05 11:45:02 +10:00
2018-11-28 11:04:50 +11:00