Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo.MirrorUpdate error #258

Closed
tobyzxj opened this issue Jun 25, 2014 · 19 comments
Closed

repo.MirrorUpdate error #258

tobyzxj opened this issue Jun 25, 2014 · 19 comments
Labels
💊 bug Something isn't working

Comments

@tobyzxj
Copy link
Contributor

tobyzxj commented Jun 25, 2014

Hi, I get following error in the logs:

GoGits · Version: 0.4.5.0621 Alpha

2014/06/24 14:24:01 [repo.go:232] [D] displayBare: true; IsBare: false
2014/06/24 14:28:24 [repo.go:232] [D] displayBare: false; IsBare: false
2014/06/24 14:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 15:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 16:31:47 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 17:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 18:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 19:31:51 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 20:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 21:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 22:31:55 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory
2014/06/24 23:31:45 [repo.go:249] [E] repo.MirrorUpdate: open /var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git/packed-refs: no such file or directory

GiterNAS> pwd
/var/services/homes/git/git/gogs-repositories/tobyzxj/gitignore.git
GiterNAS> ls -al
drwxr-xr-x    7 git      users         4096 Jun 10 14:26 .
drwxr-xr-x   14 git      users         4096 Jun  9 14:20 ..
-rw-r--r--    1 git      users            0 Jun 25 17:31 FETCH_HEAD
-rw-rw-rw-    1 git      users           23 May 16 12:01 HEAD
drwxr-xr-x    2 git      users         4096 May 16 14:11 archives
-rw-rw-rw-    1 git      users          131 May 16 12:01 config
-rw-rw-rw-    1 git      users           73 May 16 12:01 description
drwxr-xr-x    2 git      users         4096 May 16 12:01 hooks
drwxr-xr-x    2 git      users         4096 May 16 12:01 info
drwxr-xr-x    4 git      users         4096 May 16 12:01 objects
drwxr-xr-x    4 git      users         4096 May 16 12:01 refs
GiterNAS>
@unknwon
Copy link
Member

unknwon commented Jun 25, 2014

How this gitignore.git repo looks like? empty? Any branch? tag?

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jun 26, 2014

gitignore.git repo is a mirror for https://github.com/github/gitignore

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 4, 2014

GoGits · Version: 0.4.5.0629 Alpha

I found a strange phenomenon in the repositories. Look at the two pictures below, Why add :@ to mirror url ?
20140704101642

20140704101747

@unknwon
Copy link
Member

unknwon commented Jul 4, 2014

This is for auth user name and password through HTTPS, which in your case no auth required, so there are empty.

@lunny
Copy link
Contributor

lunny commented Jul 5, 2014

It seems that models/repo.go:242's bug. A git repo maybe have packed-refs dir or have not. So packed-refs could be not exist.

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 6, 2014

Hi, i may found this bug, why mirror repo is not updated, it seems like the repo always in the status which it was created first. In addition, i haven't seen this packed-refs: no such file or directory error in the later (which gogs i tesed is GoGits · Version: 0.4.5.0629 Alpha).

Look at the logs below:

  1. run git remote update
  2. run git gc to update packed-refs file
  3. unpack packed-refs, here is git.UnpackRefs <-- it will cover the refs/heads/* files using packed-refs. so, before unpack packed-refs, it should run git gc to update the packed-refs file

func MirrorUpdate() {
    if err := x.Iterate(new(Mirror), func(idx int, bean interface{}) error {
        m := bean.(*Mirror)
        if m.NextUpdate.After(time.Now()) {
            return nil
        }

        // TODO: need timeout.
        // 1. run git remote update
        // 2. unpack packed-refs, here is git.UnpackRefs <-- it will cover the refs/heads/* files using packed-refs
        // so, before unpack packed-refs, it should run `git gc` to update the packed-refs file
        repoPath := filepath.Join(setting.RepoRootPath, m.RepoName+".git")
        if _, stderr, err := process.ExecDir(
            repoPath, fmt.Sprintf("MirrorUpdate: %s", repoPath),
            "git", "remote", "update"); err != nil {
            return errors.New("git remote update: " + stderr)
        } else if err = git.UnpackRefs(repoPath); err != nil {
            return errors.New("UnpackRefs: " + err.Error())
        }

        m.NextUpdate = time.Now().Add(time.Duration(m.Interval) * time.Hour)
        return UpdateMirror(m)
    }); err != nil {
        log.Error("repo.MirrorUpdate: %v", err)
    }
}

/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ ls -al
drwxr-xr-x    7 git      users         4096 Jun 29 10:08 .
drwxr-xr-x   15 git      users         4096 Jul  4 10:12 ..
-rw-r--r--    1 git      users        43648 Jul  6 10:13 FETCH_HEAD
-rw-r--r--    1 git      users           23 Jun 29 07:18 HEAD
drwxr-xr-x    2 git      users         4096 Jun 29 07:17 branches
-rw-r--r--    1 git      users          169 Jul  6 08:59 config
-rw-r--r--    1 git      users           73 Jun 29 07:17 description
drwxr-xr-x    2 git      users         4096 Jun 29 07:17 hooks
drwxr-xr-x    2 git      users         4096 Jun 29 07:17 info
drwxr-xr-x   65 git      users         4096 Jul  2 16:38 objects
-rw-r--r--    1 git      users        23505 Jun 29 07:18 packed-refs
drwxr-xr-x    5 git      users         4096 Jun 30 17:04 refs
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat FETCH_HEAD | grep master
cbffcaa7a8140ac4cde3ed49737665c9b4d129d8        not-for-merge   branch 'master' of https://github.com/astaxie/beego <-- the latest
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat packed-refs | grep master
9c5348f6902d84578134e95b93758f4c17b4a82b refs/heads/master <-- not the latest
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat HEAD
ref: refs/heads/master
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat refs/heads/master
9c5348f6902d84578134e95b93758f4c17b4a82b
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ git remote update
Fetching origin
From https://github.com/astaxie/beego
   62e9c89..fefd8dd  develop    -> develop
   9c5348f..cbffcaa  master     -> master <-- the latest
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat FETCH_HEAD | grep master
cbffcaa7a8140ac4cde3ed49737665c9b4d129d8        not-for-merge   branch 'master' of https://github.com/astaxie/beego
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat HEAD
ref: refs/heads/master
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat refs/heads/master
cbffcaa7a8140ac4cde3ed49737665c9b4d129d8
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat packed-refs | grep master
9c5348f6902d84578134e95b93758f4c17b4a82b refs/heads/master
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ git gc <-- it will update packed-refs file
Counting objects: 5831, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2466/2466), done.
Writing objects: 100% (5831/5831), done.
Total 5831 (delta 3400), reused 5641 (delta 3234)
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $ cat packed-refs | grep master
cbffcaa7a8140ac4cde3ed49737665c9b4d129d8 refs/heads/master <-- the latest
/volume1/homes/git/git/gogs-repositories/tobyzxj/beego.git $

@unknwon
Copy link
Member

unknwon commented Jul 6, 2014

Emm... really hard bug..

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 6, 2014

Hi @unknwon , More bad things happened when i run git gc in mirror repo. -_-!!!!

qq20140706124545

@unknwon
Copy link
Member

unknwon commented Jul 6, 2014

This is what I expect...git gc makes data unavailable for Gogs...

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 6, 2014

why and how can i do something to make data available for gogs ?

@unknwon
Copy link
Member

unknwon commented Jul 6, 2014

Honestly, I have no idea... sorry..

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 6, 2014

okey, i will learn more about git and gogs..., thx.

@lunny
Copy link
Contributor

lunny commented Jul 6, 2014

git gc will be run randomly by git itself. So we should consider there or there are not packed-refs dir.

@tobyzxj
Copy link
Contributor Author

tobyzxj commented Jul 6, 2014

@lunny , it seems like git gc is not running automatically when run git remote update(the file of packed-refs has not been updated), so requires the user to run it manually.

The following is my suggestions:
In MirrorUpdate() function:

  1. run git remote update fist
  2. then, run git gc to update packed-refs file
  3. unpack packed-refs, here is git.UnpackRefs <-- it will cover the refs/heads/* files using packed-refs.

@unknwon after i run git gc, it will delete all of refs/heads/* and refs/tags/*, and then gogs wiil panic. i use the following bash script to rebuild the data available for gogs.

#!/opt/bin/bash

IFS=$'\n'

# wirte heads to refs/heads/*
for f in $(git show-ref --heads);
    do
     echo $(echo $f | cut -c42-);
     echo $(echo $f | cut -c1-40) > `pwd`/$(echo $f | cut -c42-);
    done

# write tags to refs/tags/*
for f in $(git show-ref --tags);
    do
     echo $(echo $f | cut -c42-);
     echo $(echo $f | cut -c1-40) > `pwd`/$(echo $f | cut -c42-);
    done

@unknwon
Copy link
Member

unknwon commented Jul 6, 2014

According you shell script, it seems like all ref/* files are packed into packed-refs which Gogs need unpack again will be fine.

@unknwon unknwon added Bug and removed Undetermine labels Jul 6, 2014
@unknwon
Copy link
Member

unknwon commented Aug 1, 2014

Sorry for late, but I want to make sure that is this issue means once refs/heads/* and refs/tags/* are available, mirrors will update?

@unknwon
Copy link
Member

unknwon commented Aug 1, 2014

I tested 'dev' branch and this issue is no longer valid, reopen it if you have any question.

@unknwon unknwon closed this as completed Aug 1, 2014
unknwon added a commit that referenced this issue Aug 1, 2014
@tobyzxj
Copy link
Contributor Author

tobyzxj commented Aug 2, 2014

I test again, it works now.

@unknwon
Copy link
Member

unknwon commented Aug 2, 2014

Great! New dev Gogs uses git-shell which lets git handles everything itself.

ethantkoenig pushed a commit to ethantkoenig/gogs that referenced this issue Nov 27, 2016
Add a sibling to ExecDir which is capable of specifying environment variables,
so that we can invoke `git` with GIT_INDEX_FILE, GIT_DIR, etc..

For gogs#258
phillip-hopper referenced this issue in unfoldingWord/dcs Jan 6, 2017
* Bug fix for edit-hook API endpoint

* Fixes issue #283

Delete old temp local copy before we create a new temp local copy

* In the wiki title replace tab with a space (#371)

* Correction LDAP validation (#342)

* Correction LDAP username validation

As https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx describe spaces should not be in start or at the end of username but they can be inside the username. So please check my solution for it.

* Check for zero length passwords in LDAP module.

According to https://tools.ietf.org/search/rfc4513#section-5.1.2 LDAP client should always check before bind whether a password is an empty value. There are at least one LDAP implementation which does not return error if you try to bind with DN set and empty password - AD.

* Clearing the login/email spaces at the [start/end]

* Autogenerate Version on build (#190)

* Autogenerate Version On Build

* Fixes

* Changed Version to v0.9.0

* balls

* I hate newlines

* Don't remove .VERSION-file on `make clean`

* v0.9.0 => 1.0.0

* damn new-lines...

* Always rebuild templates/.VERSION

* Delete .VERSION

* Update Makefile

* bug fixed branch name for pushupdate (#380)

* Don't use custom PBKDF2 function (#382)

* fixed vulnerabilities (#392)

* Update example install url from try.gogs.io to try.gitea.io (#385)

* Update example install url from try.gogs.io to try.gitea.io

* Ask if issue can be reproduced on try.gitea.io

* Link try.gitea.io to the README

* Fixing multiple docker issues (#386)

* Added stupid docker task to makefile

* Dropped unknown option PrintLastLog from docker ssh config

* OpenSSH should log to docker stdout

* Set random pw for docker git user, otherwise it is locked

* Stop using templates and public within docker

* Disable coverage report for now (#395)

Until aircover gets updated so that it works again I have disabled to
coverage report upload for now.

* fixed vulnerabilities on deleting release (#399)

* Revert "Disable coverage report for now" (#400)

* Update gitea/sdk vendor (#406)

* Fix typo (#407)

* Remove fixed FIXME (#408)

* fixed vulnerabilities labels (#409)

* add ZH readme (#405)

* Add support for using "libravatar" as the GravatarSource

Just to make it easier for administrator to configure libre avatar,
as it is done for "duoshuo" and "gravatar"

* serve video files using the HTML5 video tag (#418)

* serve video files using the HTML5 video tag

* lint fix: add comment to IsVideoFile

* change test mail subject and body to 'Gitea Test Mail!'

Signed-off-by: Michael de Wit <mjwwit@gmail.com>

* Fix random string generator (#384)

* Remove unused custom-alphabet feature of random string generator

Fix random string generator

Random string generator should return error if it fails to read random data via crypto/rand

* Fixes variable (un)initialization mixed assign
Update test GetRandomString

* Change default Android theme color meta tag (#389)

* Do not override the binary version name from drone (#436)

Signed-off-by: Thomas Boerger <tboerger@suse.de>

* Remove remaining Gogs reference on locales and cmd (#430)

* Add Korean support (#437)

* Add Korean support

* replace Gogs to Gitea

* Update locales (#440)

* Update locales

* replace Gogs to Gitea

* Fix homepage docs link broken (#417)

* fix homepage docs link broken

* fix homepage docs links after docs updated

* Fix string format verbs (#3637)

* issue comment api fix (#449)

* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments

* Bug fixes and tests for modules/base (#442)

Also address other TODOs

* UpdateIssueUsersByMentions was calling database write operations while (#443)

a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.

issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions

* update code.gitea.io/git (#450)

* init script gentoo (#447)

* init script for gentoo (#3761)

* replace Gogs to Gitea

* remove override port number

* remove port

* New settings option for a custom SSH host (#3763) (#446)

* New settings option for a custom SSH host (#3763)

* let default ssh listen addr empty

* fix bug #1122 log.smtp receiver configure error (#3602) (#451)

* Check if file is a symlink with web editor (#3687) (#445)

* Check if file is a symlink with web editor (#3687)

* editor checks for symlinks

* translate file_is_a_symlink message

* credit translation author

* fix error constant

* fix tag webhook 404 error (#420)

* Bindata is optional and over-writable on restart (#354)

* Moved conf assets into options folder

* Dropped old bindata

* Started to integrate options bindata and accessors

* Do not enforce a builtin app.ini

* Replaced bindata calls with options

* Dropped bindata task from makefile, it's the generate task now

* Always embedd app.ini to provide sane config defaults

* Use sane defaults for the configuration

* Defined default value for SSH_KEYGEN_PATH

* Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini

* Fixed new paths in latest test additions

* Drop bindata with make clean task

* Set more proper default values

* resolved #394 (#396)

* Change screenshoots to Gitea (#454)

* Fix race condition in unit test (#456)

* Add default values for settings (#455)

* add default values for settings

* more default values

* more default settings and labels resource

* mv locale to options

* Integrated an initial changelog (#457)

* Simplified README and added a release badge (#460)

* Dropped the status from readme, it's anway always outdated

* Added version badge

* Cleaned the install instructions

* Dropped paragraphs that should be documented on the docs

* Simplified the content, refer to the website

* Dropped the logo, lets show screenshots

* Fixed TRANSLATORS link

* update zh readme (#462)

* Fix broken godoc link and add arch in English README (#463)

* fix broken godoc link and add arch in English README

* typo

* Fixed drone tagging

* Properly handle drone tags and release/* branches (#466)

* Raised version to 1.1.0 (#468)

* Enables mssql support (#383)

* Enables mssql support

Port of dlobs work in gogs.
Enables options in index.js
Enables MSSQL as a database option in go.
Sets ID to 0 on initial migration. Required for
MSSQL insert statements.

Signed-off-by: Beau Trepp <beautrepp@gmail.com>

* Vendors in denisenkom/go-mssqldb

Includes golang.org/x/crypto/md4
as this is required by go-msssqldb

Signed-off-by: Beau Trepp <beautrepp@gmail.com>

* API Endpoint for watching (#191)

* Bug fixes for Issues filters (#413)

Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters

* Added minimum password length to app.ini (#223)

* Added sorting to the labels & milestones page (#199)

* Simplified MinPasswordLength check (#475)

* Added sorting to organizations, repos & users page (#222)

* Organization webhook API endpoints

* Update sdk

* Implement sendmail (#355)

* Implemented sendmail. This piggybacks on existing configuration to keep the change simple

* Changed privicy of new sendSMTP and sendSendmail functions

* Fixed Lint errors

* Seperated SMTP and sendmail into their own senders

* Making new structs private as they should not be used externally now

* Added sendmail setting to ini file

* Minor code cleanup

* Provide button to delete merged pull request (#441)

* provide button to delete merged pull request

* golint fix

* Git LFS support v2 (#122)

* Import github.com/git-lfs/lfs-test-server as lfs module base

Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198

Removed:

Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md

* Remove config, add JWT support from github.com/mgit-at/lfs-test-server

Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83

* Add LFS settings

* Add LFS meta object model

* Add LFS routes and initialization

* Import github.com/dgrijalva/jwt-go into vendor/

* Adapt LFS module: handlers, routing, meta store

* Move LFS routes to /user/repo/info/lfs/*

* Add request header checks to LFS BatchHandler / PostHandler

* Implement LFS basic authentication

* Rework JWT secret generation / load

* Implement LFS SSH token authentication with JWT

Specification: https://github.com/github/git-lfs/tree/master/docs/api

* Integrate LFS settings into install process

* Remove LFS objects when repository is deleted

Only removes objects from content store when deleted repo is the only
referencing repository

* Make LFS module stateless

Fixes bug where LFS would not work after installation without
restarting Gitea

* Change 500 'Internal Server Error' to 400 'Bad Request'

* Change sql query to xorm call

* Remove unneeded type from LFS module

* Change internal imports to code.gitea.io/gitea/

* Add Gitea authors copyright

* Change basic auth realm to "gitea-lfs"

* Add unique indexes to LFS model

* Use xorm count function in LFS check on repository delete

* Return io.ReadCloser from content store and close after usage

* Add LFS info to runWeb()

* Export LFS content store base path

* LFS file download from UI

* Work around git-lfs client issue with unauthenticated requests

Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: git-lfs/git-lfs#1088

* Fix unauthenticated UI downloads from public repositories

* Authentication check order, Finish LFS file view logic

* Ignore LFS hooks if installed for current OS user

Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.

* Hide LFS metafile diff from commit view, marking as binary

* Show LFS notice if file in commit view is tracked

* Add notbefore/nbf JWT claim

* Correct lint suggestions - comments for structs and functions

- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion

* Move secret generation code out of conditional

Ensures no LFS code may run with an empty secret

* Do not hand out JWT tokens if LFS server support is disabled

* API Endpoints for collaborators (#375)

* Improve issue references in markdown (#471)

* Improve issue references in markdown. (#3436)

* Fix build

* Fix lint

* Fix comment typo

* Improve the way how branches are deleted

Delete branch from HeadRepo instead of BaseRepo
Prevent the deletion of a master branch
Show a yes/no overlay when you press the delete branch button

* Added Dutch translations to the landingpage

* At the locales replaced 6 with MIN_PASSWORD_LENGTH

* fix 500 when delete orgnization and resolved #486

* fix installation page ssh domain unavilable

* Fix default cookie name

* ignore static files statstics for linguist

* Remove redundant query in collaborator API (#516)

* Optimization for user.GetRepositoryAccesses to reduce db query times (#495)

* optimization for user.GetRepositoryAccesses to reduce db query times

* fix missing cache

* API endpoints for organization teams (#370)

* Replace Gogs with Gitea (#520)

* Implementation of Folder Jumping

* Permissions bug fix for webhooks

* commithgraph / timeline (#428)

* Add model and tests for graph

* Add route and router for graph

* Add assets for graph

* Add template for graph

* slight optimization for GetUserRepositories (#498)

* add default values for SSH settings (#500)

* Repo permission bug fixes (#513)

* Cache users on list releases (#527)

* Tab on user profile to show starred repos (#519)

* Tab on user profile to show starred repos

* Make golint happy and use transactions on StarRepo function

* x -> sess

* Use sess.Close() instead of sess.Rollback()

* Add copyright

* Fix lint

* Speed up conflict checking in pull request creation (#276)

* Speed up conflict checking in pull request creation

In order to check conflicts of a PR, we set up a working tree by
cloning the base branch, which is quite time-consuming when the repository is huge.
Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts.

For #258

* Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem

The lockfile gets renamed to the final destination after the operation
finishes. But it must be located in the same filesystem, which prevents
us from using /tmp.

* Temporary file names should not prefixed with '-'

* push + pull now works with reverse proxy + basic auth on apache 2.4

* Notification - Step 1 (#523)

* Notification - Step 1

* Add copyright headers

* Cache issue and repository on notification model

* Fix URL link on CONTRIBUTING

Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com>

* Notifications - Step 2

* fix gofmt error

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* replcae go fmt with gofmt command.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* Updated Dutch translations

* Support http service graceful restart (#416)

* support http service graceful restart

* fix dependencies

* API endpoints for forks (#509)

* Restrict creating organisations by user (#193)

* restrict creating organizations based on right on user

* revert bindata.go

* reverse vendor lib

* revert goimports change

* set AllowCreateOrganization default value to true

* revert locale

* added default value for AllowCreateOrganization

* fix typo in migration-comment

* fix comment

* add coments in migration

* fix windows build broken by #416

* Unit tests for token and update models

* resolved #485: when migrate empty wiki repo, then ignore (#541)

* Fix wrong anchors for non-latin headings (#3981) (#512)

Change Javascript regular expression to match non-latin characters
The regex comes from here: http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters#comment22322603_150078

And this patch should fixed these two issues: #3919 #3843

* resolved #517: fix admin ui data row missing

* Replace pull request with issue at issue_template (#547)

* Apply dockerfile updates to raspberry dockerfile (#548)

* UI config to toggle whether user email shows up in Explore Users (#336)

* UI config to toggle whether user email shows up in Explore Users

* Recommendation made by @tboerger
go-gitea/gitea@66a1c59#r94122732

* fixed typo, rename ShowUserEmailInExplore to ShowUserEmail

* Fixed typo merged conflict

* Hide email in the user profile page

if you are active ShowUserEmail
ref go-gitea/gitea#336 (comment)

* Please replace MustBool() with MustBool(true)

* Makefile: on Windows, executable should have ".exe" (#550)

* Release API endpoints

* Provide description for the INSTALL_LOCK config option (#554)

* fix config session missing data row & resolved #517 (#549)

* Do not get count on /api routers

* More fine graned colors

* Showing index in front of issue title

* change the default action when deleting a release to not delete tag

* Update maintainer list for LGTM

* Fix benchmarktests (#557)

* build failed by deleting release by API (#562)

* bug fixed for fork repos (#560)

* Update xorm and dependencies vendor for feature to dump to other database (#565)

* update xorm and dependencies vendor for feature to dump to other database

* fix golint

* fix bug #564 (#567)

* Add pagination for notifications

* fix: Remove call to set GOMAXPROCS (#577)

* Rename .gogs to .gitea and comply with github template guidelines (#568) (#582)

Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>

* Fix typos in models/ (#576)

* Check primary email address fields on CreateUser (#556)

* Check primary email address fields on CreateUser

As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.

* Update user.go

* Lower the email first. Then check

* Fix SQL bug in models/access (#583)

Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses

* Fix diff split view coloring (#553) (#584)

Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>

* Fix unified diff view styling (#585)

Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>

* Add the note forked from gogs (#590)

* add the note forked from gogs

* make the sentence simple

* Clone tags within drone for proper version generation (#591)

* Added 1.0.1 to changelog (#594)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants