git checkout -q rewrite did not run successfully heroku problem

Viewed 39

I got this error from heroku, after I tried pushing it:

remote:          error: pathspec 'rewrite' did not match any file(s) known to git
remote:          error: subprocess-exited-with-error
remote:
remote:          × git checkout -q rewrite did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> See above for output.
remote:
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:

I don't know how can I fix the error , so I need help!

Here is my code:

client = commands.Bot(command_prefix=".", intents=intents)
client.remove_command('help')

@client.event
async def on_ready():
    
    
    print("Bot is ready!")

async def ch_pr():
    await client.wait_until_ready()
    
    while not client.is_closed():
      status = random.choice(statuses)
      
      await client.change_presence(
        status=discord.Status.online,
        activity=discord.Game(status))

      await asyncio.sleep(120)

Do you need the libraries I imported?

Also, here is the requirements.txt:

git+https://github.com/Rapptz/discord.py@rewrite
dnspython==1.16.0
PyNaCl==1.3.0
async-timeout==3.0.1
0 Answers
Related