yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
906 stars 118 forks source link

unable to delete branch: "Internal Error" #169

Open brainchild0 opened 4 years ago

brainchild0 commented 4 years ago

The application is failing to delete a branch.

(Note that in this case the name of the branch is master. It was created by the application to initialize the repository, but is not needed.)

The web interface prints a message "Internal Error", and the log shows the following:

[Wed May 27 20:47:33 2020] [error] /gitprep.cgi/user/repo/branches?op=delete: Branch deleting failed. Can't delete branch master at template /branches.html.ep line 40.
95:     # Icky backwards compatibility wrapper. :-(
96:     local @CARP_NOT = $cgc ? $cgc->() : caller();
97:     shortmess_heavy(@_);
98: }
99: 
100: sub croak   { die shortmess @_ }
101: sub confess { die longmess @_ }
102: sub carp    { warn shortmess @_ }
103: sub cluck   { warn longmess @_ }
104: 
105: BEGIN {
yuki-kimoto commented 4 years ago

Do you want to delete master branch?

brainchild0 commented 4 years ago

Yes, in this case the application created a branch called master in a new repository. (Or maybe I created it by accident.) I wanted to push a branch called develop from the client, because the project has no branch named master. I then set develop to the default branch, but I cannot delete master.

yuki-kimoto commented 4 years ago

Can you pull request?

or do you hope I fix it?

brainchild0 commented 4 years ago

I had no plans to make a PR, but maybe some day I could try.

yuki-kimoto commented 4 years ago

Honestly, Currently I have busy to do other Open Source Perl Projects. I want to fix many bugs in GitPrep and want GitPrep become Completely Private Gihub-like sysmte containing Installation process.

If you pull request, I can merge it!

bilogic commented 3 years ago

Honestly, Currently I have busy to do other Open Source Perl Projects. I want to fix many bugs in GitPrep and want GitPrep become Completely Private Gihub-like sysmte containing Installation process.

If you pull request, I can merge it!

Hmm... how about a PHP/Laravel port? There are many developers from that community who can help haha 😎

yuki-kimoto commented 3 years ago

Sorry. PHP is Perl's competitor on the Web.

I'm working to popularize Perl and Mojolicious in Web develpoment.

PHP is an easy-to-use language.

However, I'm a Perl user and invest in Perl.

bilogic commented 3 years ago

@yuki-kimoto

Haha, your fighting spirit is commendable :) Do you mind telling me where is the database structure for giitprep?

yuki-kimoto commented 3 years ago

Gitpre Database is SQLite.

sqlite3 data/gitprep.db