repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

git-pr / fixtures
Eric Bower  ·  2025-12-13

a_c_mode_change.patch

 1From 33c682ac27479f501924cf159d0a75ad91deb589 Mon Sep 17 00:00:00 2001
 2From: Eric Bower <me@erock.io>
 3Date: Tue, 23 Jul 2024 10:07:57 -0400
 4Subject: [PATCH 1/2] chore: add torch and create random tensor + add script
 5
 6---
 7 requirements.txt | 1 +
 8 train.py         | 3 +++
 9 run.sh           | 2 ++
10 3 files changed, 6 insertions(+)
11 create mode 100644 requirements.txt
12 create mode 100644 run.sh
13
14diff --git a/requirements.txt b/requirements.txt
15new file mode 100644
16index 0000000..4968a39
17--- /dev/null
18+++ b/requirements.txt
19@@ -0,0 +1 @@
20+torch==2.3.1
21diff --git a/train.py b/train.py
22index 5c027f4..d21dac3 100644
23--- a/train.py
24+++ b/train.py
25@@ -1,2 +1,5 @@
26+import torch
27+
28 if __name__ == "__main__":
29     print("train!")
30+    torch.rand(3,6)
31diff --git a/run.sh b/run.sh
32new file mode 100644
33index 0000000..1234567
34--- /dev/null
35+++ b/run.sh
36@@ -0,0 +1,2 @@
37+#!/bin/bash
38+python train.py
39-- 
402.45.2
41
42
43From aabb001259c34a166d5a9335ebe5236e79541cc63 Mon Sep 17 00:00:00 2001
44From: Eric Bower <me@erock.io>
45Date: Tue, 23 Jul 2024 10:14:37 -0400
46Subject: [PATCH 2/2] chore: make script executable
47
48---
49 run.sh | 0
50 1 file changed, 0 insertions(+), 0 deletions(-)
51 mode change 100644 => 100755 run.sh
52
53diff --git a/run.sh b/run.sh
54old mode 100644
55new mode 100755
56-- 
572.45.2