Comments (11)
We definitely hande existing repositories correctly here. Can you post logging output of your run?
from python-github-backup.
Here's the output for one of my starred repos:
8<----- snip...
Cloning wii-u-gc-adapter repository from https://*****:[email protected]/ToadKing/wii-u-gc-adapter.git to /run/media/andrea/5295089D57AEB47E/old_hdd/github/starred/ToadKing/wii-u-gc-adapter/repository
git returned 128:
git clone --mirror https://*****:[email protected]/ToadKing/wii-u-gc-adapter.git /run/media/andrea/5295089D57AEB47E/old_hdd/github/starred/ToadKing/wii-u-gc-adapter/repository
Skipping wii-u-gc-adapter (https://*****:[email protected]/ToadKing/wii-u-gc-adapter.wiki.git) since it's not initialized
Retrieving ToadKing/wii-u-gc-adapter issues
Saving 0 issues to disk
8<----- snip...
As you can see in line 5, it's stating that git
returned a code of 128. On a seperate terminal, I ran the command in line 6 with my personal access token and --verbose
, and it returned this:
andrea@inspiron ~> git clone --verbose --mirror https://*****:[email protected]/ToadKing/wii-u-gc-adapter.git /run/media/andrea/5295089D57AEB47E/old_hdd/github/starred/ToadKing/wii-u-gc-adapter/repository
fatal: destination path '/run/media/andrea/5295089D57AEB47E/old_hdd/github/starred/ToadKing/wii-u-gc-adapter/repository' already exists and is not an empty directory.
from python-github-backup.
Looks like the bare check failed. That code is here
What is the output of the following from within that directory?
git rev-parse --is-bare-repository
from python-github-backup.
andrea@inspiron ~> cd /run/media/andrea/5295089D57AEB47E/old_hdd/github/starred/ToadKing/wii-u-gc-adapter/repository
andrea@inspiron /r/m/a/5/o/g/s/T/w/repository>
git rev-parse --is-bare-repository
true
from python-github-backup.
I wonder if it's getting newlines or something. I'll have to play around with this to add verbose logging for you to try later tonight.
from python-github-backup.
Definitely would be willing to test out or help out any way I can, can't risk losing all my repositories.
from python-github-backup.
I'm encountering the exact same issue (also bare repos) on CentOS 7. GIT version is 2.9.3
.
from python-github-backup.
I've updated my GIT to version 2.16.2
to see if that would make a difference but that doesn't make a difference unfortunately.
from python-github-backup.
I no longer see this behavior (problem) with github-backup 0.20.0
.
from python-github-backup.
\o/
@anodium can you confirm it fixed it for you?
from python-github-backup.
@josegonzalez Just confirmed, fixed and works properly now. Thank you very much! 👍
from python-github-backup.
Related Issues (20)
- Feature request: read personal access token (PAT) from stdin HOT 1
- The release script is broken HOT 1
- Personal Access Token (PAT) - Which scopes are need to backup an organiziation? HOT 1
- Add a --quiet option HOT 1
- Download watchers, forks, and stargazers of a repo
- A way to include the actual commits of backupped PRs?
- Add option to disable --prune when updating repository
- how to correctly update local backup? HOT 7
- Backup images and attachments in the issues
- Github-backup in 140 repository org backups nothing HOT 3
- Exclude specific repositories from backup HOT 1
- Add support for fine-grained tokens HOT 2
- Proposal to use API repository `pushed_at` instead of `update_at` field for `last_updated`
- something awry in --releases HOT 1
- When the `--lfs` option is used, after first clone non-lfs content is no longer fetched HOT 1
- Feature: offer docs how to run in docker HOT 4
- ERROR: 'gaierror' object is not iterable
- Automate releases HOT 5
- `--all-starred` does not backup anything HOT 7
- Backing up releases using fine-grained token ends with an error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-github-backup.