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
..
2016-11-01 17:27:41 -07:00
2016-11-01 17:27:41 -07:00
2017-06-21 12:01:31 +10:00
2016-11-01 17:27:41 -07:00
2020-04-02 10:11:35 +11:00
2021-11-26 08:46:42 +01:00
2021-11-26 08:46:42 +01:00
2018-02-23 10:04:44 +11:00
2018-02-23 10:04:44 +11:00
2022-02-22 11:03:14 +11:00
2021-06-24 10:09:00 +10:00
2022-02-01 15:39:24 +11:00
2021-03-11 10:27:59 +13:00
2022-02-09 04:39:00 +00:00
2016-11-01 17:27:41 -07:00
2021-12-18 17:51:18 -06:00
2017-05-31 14:36:30 +02:00
2020-10-06 14:03:57 +02:00
2016-11-01 17:27:41 -07:00
2022-03-15 13:18:11 +00:00
2021-09-01 23:49:27 +02:00
2022-02-10 15:08:56 +11:00
2017-06-19 13:27:33 +10:00
2017-06-19 13:27:33 +10:00
2021-04-28 09:48:22 -07:00
2016-11-01 17:27:41 -07:00
2016-11-01 17:27:41 -07:00
2016-11-01 17:27:41 -07:00
2016-11-01 17:27:41 -07:00
2018-03-22 00:16:09 -05:00
2022-02-21 18:55:51 +00:00
2019-11-21 12:38:15 +11:00
2021-04-07 07:17:19 +00:00
2020-05-28 16:44:49 +10:00
2019-10-23 10:16:00 +11:00
2020-01-20 11:43:43 +01:00
2016-11-01 17:27:41 -07:00
2017-04-05 13:11:22 +10:00
2020-09-18 14:52:56 +10:00
2017-05-31 08:36:56 +10:00
2017-06-11 09:30:34 +00:00
2021-10-27 11:11:50 +11:00
2020-11-20 15:00:54 +01:00
2017-01-31 14:14:19 +11:00
2020-08-24 10:21:35 -05:00
2020-03-10 11:57:43 +11:00
2022-04-07 09:01:13 +02:00
2022-03-11 14:53:00 +11:00
2022-02-04 09:15:17 +11:00
2022-02-18 08:11:18 -08:00
2022-02-18 14:17:00 -06:00
2020-05-28 16:44:49 +10:00
2022-02-04 00:23:13 +03:00
2022-01-17 23:40:24 +01:00
2021-03-12 19:16:50 +08:00
2016-11-01 17:27:41 -07:00
2017-05-19 12:43:36 -07:00
2018-11-20 14:11:11 +01:00
2016-11-01 17:27:41 -07:00
2020-04-23 08:10:26 +10:00
2016-11-01 17:27:41 -07:00
2016-11-01 17:27:41 -07:00
2021-01-14 02:05:20 +00:00
2021-03-16 09:56:07 +00:00
2019-07-25 11:24:49 +10:00
2021-10-06 15:05:28 -04:00
2016-11-29 07:43:46 +11:00
2020-10-28 16:55:49 +02:00
2017-05-24 15:20:55 +10:00
2020-03-23 00:06:53 +02:00
2019-12-18 11:42:02 -05:00
2018-06-28 13:55:53 +02:00
2021-01-21 14:06:08 +01:00
2016-11-01 17:27:41 -07:00
2021-08-04 03:06:55 +00:00
2019-05-01 11:42:21 -04:00
2021-10-20 09:39:27 +11:00
2022-01-28 02:18:47 -03:00
2021-03-11 10:27:59 +13:00
2020-08-07 10:38:16 +10:00
2021-12-29 16:43:00 +01:00
2018-10-01 19:59:30 -07:00
2022-01-31 17:26:16 +00:00
2016-11-29 07:43:46 +11:00
2021-03-03 19:04:50 +01:00
2020-08-07 10:38:16 +10:00
2017-02-09 13:35:53 +11:00
2020-11-17 09:23:32 +00:00
2021-07-05 11:45:02 +10:00
2017-05-19 12:43:36 -07:00
2016-11-01 17:27:41 -07:00
2022-02-09 03:33:34 +00:00
2022-02-22 13:43:18 +13:00
2019-05-29 12:07:44 +00:00
2021-12-06 20:19:59 +00:00
2022-02-21 14:38:30 -08:00
2022-02-10 15:08:56 +11:00
2017-02-02 20:36:23 +11:00
2016-11-01 17:27:41 -07:00
2018-11-19 13:13:57 +11:00
2022-02-23 12:43:06 -08:00
2022-04-14 16:53:37 +00:00
2016-11-01 17:27:41 -07:00
2020-08-24 10:21:35 -05:00
2017-02-02 11:20:00 +11:00
2022-03-11 15:48:03 +13:00
2021-10-06 15:05:28 -04:00
2016-11-01 17:27:41 -07:00
2022-03-16 13:43:30 +01:00
2021-08-26 23:28:33 -03:00
2022-01-21 19:21:00 -03:00
2017-03-14 14:49:49 +11:00
2021-10-20 09:39:27 +11:00
2018-02-23 10:04:40 +11:00
2021-09-13 09:32:53 +12:00
2022-02-09 05:02:40 +00:00
2019-01-07 10:02:35 +08:00
2019-12-02 16:21:45 -08:00
2021-07-05 11:45:02 +10:00
2018-11-28 11:04:50 +11:00