From ecbd2b9a9aefb43dd00e8f36684966ba7f57f9f3 Mon Sep 17 00:00:00 2001 From: miao_kaibo Date: Tue, 2 Feb 2021 14:10:57 +0800 Subject: [PATCH] change commit message --- core/update_obs_repos.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/update_obs_repos.py b/core/update_obs_repos.py index 73d957a..bd1cfd4 100755 --- a/core/update_obs_repos.py +++ b/core/update_obs_repos.py @@ -237,8 +237,10 @@ class RPMManager(object): with open(self.obs_pkg_rpms_file, "w", encoding="utf-8") as f: yaml.dump(self.old_pkg_rpms, f) for i in range(5): - cmd = "cd %s && git pull && git add %s && git commit -m 'update rpms' && git push && cd - && rm -rf %s" \ - % (self.obs_pkg_rpms_files_dir, self.obs_pkg_rpms_file, self.obs_pkg_rpms_files_dir) + cmd = "cd %s && git pull && git add %s && git commit -m 'update rpms in file %s' \ + && git push && cd - && rm -rf %s" \ + % (self.obs_pkg_rpms_files_dir, self.obs_pkg_rpms_file, \ + self.obs_pkg_rpms_file, self.obs_pkg_rpms_files_dir) if os.system(cmd) == 0: break -- Gitee