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

32 lines
780 B
Diff
Raw Normal View History

2023-04-16 18:15:28 +00:00
From 5a1296bed9f1e1a7c1a182828384309da31293a6 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <git@lukegb.com>
Date: Sat, 22 Oct 2022 19:33:07 +0100
Subject: [PATCH 1/4] 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
2023-04-16 18:15:28 +00:00
index df891e646..03c0fbc62 100644
--- a/scripts/version.py
+++ b/scripts/version.py
2023-04-16 18:15:28 +00:00
@@ -74,13 +74,7 @@ class GitVersion:
}
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):
--
2023-04-16 18:15:28 +00:00
2.39.2