Peter Rader
Peter Rader
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
Thanks
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
gitDaemon.getService("git-receive-pack").setEnabled(true); worked like a charm
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
I expect "init" to create and "push" to publish the repo.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
And I don't see any reason why it shoulnt work.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
Yes
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
Mate, see the code above. There is no more classes in the project, just this one.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
For security reasons I would not use the git:-protocol. But I think it is possible to do writes anyway -- even if a bad idea.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
From the code above you can see that I do nothing with SSH.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 4/3/2025 in #java-help
Push programatically
Unfortunately the output sais it could not read from repo. This is the output:
localhost:~/./$ rm -rf abc

localhost:~/./$ mkdir abc

localhost:~/./$ git init abc -q

localhost:~/./$ touch abc/foobar.txt

localhost:~/abc/$ git add foobar.txt

localhost:~/abc/$ git remote add abc git://localhost/abc/

localhost:~/abc/$ git switch --create master
Switched to a new branch 'master'

localhost:~/abc/$ git commit -m "Title" -m "Description..."
[master (root-commit) cc9ebb4] Title
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foobar.txt

localhost:~/abc/$ git push --set-upstream abc master
fatal: Could not read from remote repository.
localhost:~/./$ rm -rf abc

localhost:~/./$ mkdir abc

localhost:~/./$ git init abc -q

localhost:~/./$ touch abc/foobar.txt

localhost:~/abc/$ git add foobar.txt

localhost:~/abc/$ git remote add abc git://localhost/abc/

localhost:~/abc/$ git switch --create master
Switched to a new branch 'master'

localhost:~/abc/$ git commit -m "Title" -m "Description..."
[master (root-commit) cc9ebb4] Title
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foobar.txt

localhost:~/abc/$ git push --set-upstream abc master
fatal: Could not read from remote repository.
39 replies
JCHJava Community | Help. Code. Learn.
Created by Shruti on 4/1/2025 in #java-help
Issue: API Returning Empty JSON Objects {}
Have you considered using data-rest ( https://spring.io/projects/spring-data-rest )?
82 replies
JCHJava Community | Help. Code. Learn.
Created by Kale Vivi on 3/29/2025 in #java-help
Hexagonal architecture question
That's it in a nutshell
186 replies
JCHJava Community | Help. Code. Learn.
Created by Kale Vivi on 3/29/2025 in #java-help
Hexagonal architecture question
It's a approach to have two Adapters between two Microservices. One for each side.
186 replies
JCHJava Community | Help. Code. Learn.
Created by Kale Vivi on 3/29/2025 in #java-help
Hexagonal architecture question
Yes. What's the question ❓
186 replies
JCHJava Community | Help. Code. Learn.
Created by Wither Well on 3/29/2025 in #java-help
Stack Interface, Deque Implementation: Worth it?
Stack fulfil LIFO, it doesnt break it?! From the javadoc: The Stack class represents a last-in-first-out (LIFO) stack of objects
33 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
You open the link and click on "sign up". I think you resignate since you show no effort to solve the problem. Are you sure you like to work with computers?
29 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
you may need to register
29 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
(www.github.com)
29 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
Please use Github to share code then.
29 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
Whatfor do I need the code?
29 replies
JCHJava Community | Help. Code. Learn.
Created by 🌗 キラー 🌕 パパ 🌓###@! on 3/28/2025 in #java-help
lab 1-3
I do not like to do that. I like you to let you fix your code.
29 replies