depot/nix/pkgs/flipperzero-firmware/0001-simply-do-not-run-git.patch

32 lines
788 B
Diff
Raw Permalink Normal View History

From ec4e9cd4058520134e3c0a86643b7662bb7ab452 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <git@lukegb.com>
Date: Sat, 2 Mar 2024 00:05:01 +0000
2023-07-19 02:54:50 +00:00
Subject: [PATCH 1/5] simply do not run git
---
scripts/version.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/scripts/version.py b/scripts/version.py
index 15e029cd7..b10a8ca1a 100644
--- a/scripts/version.py
+++ b/scripts/version.py
2023-09-16 15:00:24 +00:00
@@ -73,13 +73,7 @@ class GitVersion:
2023-07-19 02:54:50 +00:00
return origins
def _exec_git(self, args):
- cmd = ["git"]
- cmd.extend(args.split(" "))
- return (
- subprocess.check_output(cmd, cwd=self.source_dir, stderr=subprocess.STDOUT)
- .strip()
- .decode()
- )
+ return ''
class Main(App):
--
2.43.0